3854 MemoryNode* memNode = 0;
3855 unsigned int realSize = 0;
3856 unsigned int addSize = 0;
3862 "FeeServer shall allocate memory of size 0; discarding call!", 0);
3864 printf(
"FeeServer shall allocate memory of size 0; discarding call!\n");
3867 return FEE_INVALID_PARAM;
3870 switch (prefixPurpose) {
3876 realSize =
size + HEADER_SIZE;
3877 addSize = HEADER_SIZE;
3882 "Received allocateMemory call with unknown prefix purpose ('%c'), discarding call.",
3883 prefixPurpose)] = 0;
3886 printf(
"%s\n", msg);
3889 return FEE_INVALID_PARAM;
3897 *ptr = memNode->identityAddr;
void createLogMessage(unsigned int type, char *description, char *origin)
MemoryNode * createMemoryNode(unsigned int size, char type, char *module, unsigned int preSize)
sprintf(name1,"NewService%d", i)