Lines Matching defs:table
257 lookup_by_name(lookup_table_type *table, const char *name)
259 while (table->name != NULL) {
260 if (strcasecmp(name, table->name) == 0)
261 return table;
262 table++;
268 lookup_by_id(lookup_table_type *table, int id)
270 while (table->name != NULL) {
271 if (table->id == id)
272 return table;
273 table++;