5.2.3 Add item

When we add item, we always add to the tail of a list. Because the tail is always an empty list, the item is always added using List_setfirstvalue. After that, we need to adjust tail so it points to the rest of itself, which is now an empty list.

void Queue_additem(struct Queue *pQ, char value);


Copyright © 2006-10-23 by Tak Auyeung