STATUS qDelete ( Q_HEAD *pQHead ) { if (qTerminate (pQHead) != OK) return (ERROR); pQHead->pQClass = NULL; /* invalidate q class */ free ((char *) pQHead); return OK; }
STATUS qDestroy( Q_HEAD *pQHead ) { STATUS status; /* Finnish off headnode */ if (qTerminate(pQHead) != OK) { status = ERROR; } else { pQHead->pQClass = NULL; free(pQHead); status = OK; } return status; }