Return the number of the module with the given name, or -1 if it doesn't * exist. Note that this is a DIFFERENT ANIMAL from the internal function * getsectionbyname()! This works ONLY if all sections have been loaded, * and does not copy the found section. */
| 580 | * getsectionbyname()! This works ONLY if all sections have been loaded, |
| 581 | * and does not copy the found section. */ |
| 582 | int lp_number(char *name) |
| 583 | { |
| 584 | int i; |
| 585 | |
| 586 | for (i = section_list.count - 1; i >= 0; i--) { |
| 587 | if (strcmp(lp_name(i), name) == 0) |
| 588 | break; |
| 589 | } |
| 590 | |
| 591 | return i; |
| 592 | } |
no test coverage detected