| 989 | */ |
| 990 | |
| 991 | int GetIDForString ( const stringID_table_t *table, const char *string ) |
| 992 | { |
| 993 | int index = 0; |
| 994 | |
| 995 | while ( VALIDSTRING( table[index].name ) ) |
| 996 | { |
| 997 | if ( !Q_stricmp( table[index].name, string ) ) |
| 998 | return table[index].id; |
| 999 | |
| 1000 | index++; |
| 1001 | } |
| 1002 | |
| 1003 | return -1; |
| 1004 | } |
| 1005 | |
| 1006 | /* |
| 1007 | ------------------------- |
no test coverage detected