Find a section by name. Otherwise works like get_section. */
| 305 | |
| 306 | /* Find a section by name. Otherwise works like get_section. */ |
| 307 | static int getsectionbyname(char *name) |
| 308 | { |
| 309 | int i; |
| 310 | |
| 311 | for (i = section_list.count - 1; i >= 0; i--) { |
| 312 | if (strwiEQ(iSECTION(i).name, name)) |
| 313 | break; |
| 314 | } |
| 315 | |
| 316 | return i; |
| 317 | } |
| 318 | |
| 319 | /* Add a new section to the sections array w/the default values. */ |
| 320 | static int add_a_section(char *name) |
no test coverage detected