* ecriture de la fonction

This commit is contained in:
glenux 2004-02-23 20:31:00 +00:00 committed by Glenn Y. Rolland
parent f8bcc4c6f5
commit 1117dd6078

View file

@ -0,0 +1,16 @@
#include "libnazgul.h"
#include "ids.h"
int queueClose(msgQueue * queue){
msgQueueId qId;
strcpy(qId,queue->id);
if (munmap(queue,sizeof(msgQueue)) < 0){
NZG_ERROR("unmap",qId);
goto ERROR;
}
return 0;
ERROR:
return -1;
}