4.2.2 Deletion

The deletion of a queue involves the deletion of the underlying array, then the structure itself:

void Queue_delete(struct Queue *pQueue)
{
  ArrayADT_delete(((struct _Queue *)pQueue)->array);
  free(pQueue);
}



Copyright © 2006-10-23 by Tak Auyeung