Given a string table and it's count of strings, it will free up it's memory
| 426 | |
| 427 | // Given a string table and it's count of strings, it will free up it's memory |
| 428 | void DestroyStringTable(char **table, int size) { |
| 429 | if ((size > 0) && (table)) { |
| 430 | for (int i = 0; i < size; i++) { |
| 431 | if (table[i]) |
| 432 | mem_free(table[i]); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | if (table) |
| 437 | mem_free(table); |
| 438 | } |
| 439 | |
| 440 | // returns the total number of strings in all the string table files |
| 441 | // returns 0 on error |
no outgoing calls
no test coverage detected