Lines Matching defs:string
52 #include <string.h>
108 static int lookup_led_status(int8_t state, const char **string);
109 static int lookup_key_posn(envmon_keysw_pos_t pos, const char **string);
115 static void fixstate(uint8_t state, const char *string, int *max_len);
116 static void fixkeyposn(envmon_keysw_pos_t keyposn, const char *string,
245 * the -1's are replaced by the max size of a condition string
498 * look for a name which starts with the string at *ptr
869 * look up function to convert led status into string
872 lookup_led_status(int8_t state, const char **string)
879 *string = ledstate_lkup[i].str_ledstate;
884 *string = "";
889 lookup_key_posn(envmon_keysw_pos_t pos, const char **string)
896 *string = keyposn_lkup[i].str_keyposn;
901 *string = "";
1352 fixstate(uint8_t state, const char *string, int *max_len)
1362 ledstate_lkup[i].str_ledstate = strdup(string);
1363 len = strlen(string);
1372 fixkeyposn(envmon_keysw_pos_t keyposn, const char *string, int *max_len)
1382 keyposn_lkup[i].str_keyposn = strdup(string);
1383 len = strlen(string);
1460 * initialise chassis serial number string