l3.libnazgul/test/create_delete.c

30 lines
510 B
C
Raw Normal View History

#include "nzg_global.h"
2004-02-17 16:43:47 +00:00
#include "nzg_iface.h"
#include "nzg_proto.h"
int main(void) {
// msgSpace mS=0;
msgSpaceId testId;
msgSpace * mSPAC;
msgPool poolInfos[2];
2004-02-22 15:29:36 +00:00
char * montext;
poolInfos[0].bufferNb=4;
poolInfos[0].bufferSize=200;
2004-02-22 15:29:36 +00:00
poolInfos[1].bufferNb=5;
poolInfos[1].bufferSize=250;
2004-02-19 18:26:46 +00:00
strcpy(testId,"test");
printf("RequestedId: %s\n",testId);
mSPAC=msgSpaceCreate(testId,0,2,poolInfos);
2004-02-22 15:29:36 +00:00
montext=msgAllocate(mSPAC,1,200,0);
msgSpaceDelete(testId);
2004-02-17 16:43:47 +00:00
return 0;
}