l3.libnazgul/src/queueDelete.c

20 lines
342 B
C
Raw Normal View History

2004-02-23 20:37:08 +00:00
#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;
}