29 lines
510 B
C
29 lines
510 B
C
#include "nzg_global.h"
|
|
#include "nzg_iface.h"
|
|
#include "nzg_proto.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);
|
|
|
|
msgSpaceDelete(testId);
|
|
|
|
return 0;
|
|
}
|