| 170 | } |
| 171 | |
| 172 | void cmdnames_release(struct cmdnames *cmds) |
| 173 | { |
| 174 | int i; |
| 175 | for (i = 0; i < cmds->cnt; ++i) |
| 176 | free(cmds->names[i]); |
| 177 | free(cmds->names); |
| 178 | cmds->cnt = 0; |
| 179 | cmds->alloc = 0; |
| 180 | } |
| 181 | |
| 182 | static int cmdname_compare(const void *a_, const void *b_) |
| 183 | { |
no outgoing calls
no test coverage detected