* destruction recursive des queues

This commit is contained in:
glenux 2004-02-23 20:38:02 +00:00 committed by Glenn Y. Rolland
parent 2c06a34e12
commit c6fabef5ed

17
src/queueElemDelete.c Normal file
View file

@ -0,0 +1,17 @@
#include "libnazgul.h"
int msgQueueElemDelete(msgQueueElemId queueElemId){
msgQueueElem * queueElemAddr;
msgQueueElemId nextIdToDie;
queueElemAddr = msgQueueElemOpen(queueElemId);
msgQueueElemClose(queueElem);
if (nextIdToDie != NULL){
return msgQueueElemDelete(nextIdToDie);
} else {
return 0;
}
ERROR:
return -1;
}