Lines Matching refs:index
790 /* Lookup a string list from one array and return its index. */
794 int index;
796 index = 0;
797 while (list[index] != NULL)
799 if (strcmp (list[index], name) == 0)
801 return (index);
803 index++;
813 /* Lookup an int list from one array and return its index. */
817 int index;
820 index = 1;
822 while (index <= size)
824 if (list[index] == value)
826 return (index);
828 index++;