27 lines
497 B
C
27 lines
497 B
C
#include "libnazgul.h"
|
|
|
|
int main(void) {
|
|
// msgSpace mS=0;
|
|
|
|
msgSpaceId testId;
|
|
msgSpace * mSPAC;
|
|
msgPool poolInfos[2];
|
|
char * montext;
|
|
|
|
poolInfos[0].bufferNb=4;
|
|
poolInfos[0].bufferSize=200;
|
|
|
|
poolInfos[1].bufferNb=5;
|
|
poolInfos[1].bufferSize=250;
|
|
|
|
strcpy(testId,"test");
|
|
printf("RequestedId: %s\n",testId);
|
|
|
|
mSPAC=msgSpaceCreate(testId,0,2,poolInfos);
|
|
|
|
montext=msgAllocate(mSPAC,1,200,0);
|
|
// msgFree(mSPAC,(void *)montext);
|
|
msgSpaceDelete(testId);
|
|
|
|
return 0;
|
|
}
|