| 686 | } |
| 687 | |
| 688 | FileListEntry *fileListFindEntry(FileList *list, const char *name) { |
| 689 | if (!list) |
| 690 | return NULL; |
| 691 | |
| 692 | FileListEntry *entry = list->head; |
| 693 | |
| 694 | int name_length = strlen(name); |
| 695 | |
| 696 | while (entry) { |
| 697 | if (entry->name_length == name_length && strcasecmp(entry->name, name) == 0) |
| 698 | return entry; |
| 699 | |
| 700 | entry = entry->next; |
| 701 | } |
| 702 | |
| 703 | return NULL; |
| 704 | } |
| 705 | |
| 706 | FileListEntry *fileListGetNthEntry(FileList *list, int n) { |
| 707 | if (!list) |
no outgoing calls
no test coverage detected