3736 if (
size <= preSize) {
3738 "Error: asking for memory smaller or equal than its prefix size.",
3741 printf(
"Error: asking for memory smaller or equal than its prefix size.\n");
3747 MemoryNode* memNode = (MemoryNode*)
malloc(
sizeof(MemoryNode));
3751 "Insufficient memory! Unable to allocate memory for MemoryNode.",
3754 printf(
"Insufficient memory! Unable to allocate memory for MemoryNode.\n");
3765 "Insufficient memory! Unable to allocate memory block of %d .",
3769 printf(
"Insufficient memory! Unable to allocate memory block of %d .\n",
3779 memNode->identityAddr = ptr + preSize;
3780 memNode->mmData.memSize =
size;
3781 memNode->mmData.memType =
type;
3783 strncpy(memNode->mmData.memDest, module, 30);
3784 memNode->mmData.memDest[29] = 0;
3786 memNode->mmData.memDest[0] = 0;
3789 memNode->mmData.prefixed =
true;
3791 memNode->mmData.prefixed =
false;
3793 memNode->mmData.prefixSize = preSize;
static MemoryNode * lastMemoryNode
void createLogMessage(unsigned int type, char *description, char *origin)
static MemoryNode * firstMemoryNode
sprintf(name1,"NewService%d", i)