FACT++  1.0
CharItemNode* findCharItem ( char *  name)

Definition at line 4107 of file feeserver.c.

References firstCharNode.

Referenced by publish(), publishChar(), publishInt(), and updateFeeService().

4107  {
4108 // char msg[70];
4109  CharItemNode* current = 0;
4110 
4111  if (name == 0) {
4112  return 0;
4113  }
4114  current = firstCharNode;
4115  while (current != 0) { // is end of list
4116  if (strcmp(name, current->charItem->name) == 0) {
4117  // success, give back CharItemNode
4118  return current;
4119  }
4120  current = current->next;
4121  }
4122 // since three lists, which are searched seperately don't make log output in
4123 // findCharItem()-function -> move to where called to combine with other
4124 // findXYItem calls
4125 /*
4126  if (state == RUNNING) {
4127  msg[sprintf(msg, "Item %s not found in CharItem list.", name)] = 0;
4128  createLogMessage(MSG_WARNING, msg, 0);
4129 # ifdef __DEBUG
4130  printf("Item %s not found in CharItem list.\n", name);
4131  fflush(stdout);
4132 # endif
4133  }
4134 */
4135  return 0;
4136 }
static CharItemNode * firstCharNode
Definition: feeserver.c:337

+ Here is the caller graph for this function: