Search for an entry in the configlist by name. Definition at line 204 of file config.c. 00205 { 00206 unsigned int i; 00207 int c; 00208 00209 for (i = 0; i < NUM_SWITCHES; i++) { 00210 c = strcmp(opt, configlist[i].name); 00211 00212 if (c == 0) 00213 /* Found it */ 00214 return (&configlist[i]); 00215 else if (c < 0) 00216 /* We're already too far */ 00217 break; 00218 } 00219 00220 /* Not found */ 00221 return (NULL); 00222 }
Here is the caller graph for this function:
![]() |
1.6.3