| 153 | } |
| 154 | |
| 155 | char *msLookupHashTable(hashTableObj *table, const char *key) |
| 156 | { |
| 157 | struct hashObj *tp; |
| 158 | |
| 159 | if (!table || !key) { |
| 160 | return(NULL); |
| 161 | } |
| 162 | |
| 163 | for (tp=table->items[hash(key)]; tp!=NULL; tp=tp->next) |
| 164 | if (strcasecmp(key, tp->key) == 0) |
| 165 | return(tp->data); |
| 166 | |
| 167 | return NULL; |
| 168 | } |
| 169 | |
| 170 | int msRemoveHashTable(hashTableObj *table, const char *key) |
| 171 | { |
no test coverage detected