FACT++  1.0
IntItemNode* findIntItem ( char *  name)

Definition at line 3378 of file feeserver.c.

References firstIntNode.

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

3378  {
3379 // char msg[70];
3380  IntItemNode* current = 0;
3381 
3382  if (name == 0) {
3383  return 0;
3384  }
3385  current = firstIntNode;
3386  while (current != 0) { // is end of list
3387  if (strcmp(name, current->intItem->name) == 0) {
3388  // success, give back IntItemNode
3389  return current;
3390  }
3391  current = current->next;
3392  }
3393 // since two lists, which are searched seperately don't make log output in
3394 // findIntItem()-function -> move to where called to combine with other
3395 // findXYItem calls
3396 /*
3397  if (state == RUNNING) {
3398  msg[sprintf(msg, "Item %s not found in IntItem list.", name)] = 0;
3399  createLogMessage(MSG_WARNING, msg, 0);
3400 # ifdef __DEBUG
3401  printf("Item %s not found in IntItem list.\n", name);
3402  fflush(stdout);
3403 # endif
3404  }
3405 */
3406  return 0;
3407 }
static IntItemNode * firstIntNode
Definition: feeserver.c:281

+ Here is the caller graph for this function: