Lines Matching refs:index
365 /* Lookup a string list from one array and return its index. */
369 int index;
371 index = 0;
372 while (list[index] != NULL)
374 if (strcmp (list[index], name) == 0)
376 return (index);
378 index++;
392 int index;
394 index = get_string_list_index (str_list, dev->val[idx].s);
396 if (index < 0)
397 index = 0;
399 return val_list[index];