FACT++  1.0
CharItem* fillCharItem ( void(*)(long *, int **, int *)  funcPointer,
char *  itemName,
long  tag 
)

Definition at line 4028 of file feeserver.c.

References createCharItem(), Memory::free(), and Memory::malloc().

4029  {
4030  CharItem* charItem = 0;
4031 
4032  charItem = createCharItem();
4033  if (charItem == 0) {
4034  //no memory available!
4035 # ifdef __DEBUG
4036  printf("no memory available for CharItem!\n");
4037 # endif
4038  return 0;
4039  }
4040  charItem->user_routine = funcPointer;
4041  charItem->name = (char*) malloc(strlen(itemName) + 1);
4042  if (charItem->name == 0) {
4043  //no memory available!
4044 # ifdef __DEBUG
4045  printf("no memory available!\n");
4046 # endif
4047  free(charItem);
4048  return 0;
4049  }
4050  strcpy(charItem->name, itemName);
4051  charItem->tag = tag;
4052  return charItem;
4053 }
void * malloc()
Definition: EventBuilder.cc:99
CharItem * createCharItem()
Definition: feeserver.c:4009
void free(void *mem)

+ Here is the call graph for this function: