| 675 | } |
| 676 | |
| 677 | FileListEntry *fileListCopyEntry(FileListEntry *src) { |
| 678 | FileListEntry *dst = malloc(sizeof(FileListEntry)); |
| 679 | if (!dst) |
| 680 | return NULL; |
| 681 | |
| 682 | memcpy(dst, src, sizeof(FileListEntry)); |
| 683 | dst->name = malloc(src->name_length + 1); |
| 684 | strcpy(dst->name, src->name); |
| 685 | return dst; |
| 686 | } |
| 687 | |
| 688 | FileListEntry *fileListFindEntry(FileList *list, const char *name) { |
| 689 | if (!list) |
no outgoing calls
no test coverage detected