list = (headerL_t *) malloc(sizeof(headerL_t));
if (checkArMagic(srcFd)==TRUE) {
- printf("found ar header ");
while(readArEntry(srcFd, list) == TRUE) {
list->next = (headerL_t *) malloc(sizeof(headerL_t));
*list->next = *head;
lseek(srcFd, head->offset + head->size, SEEK_SET);
}
}
- else
- printf("not an ar header\n");
return(head);
}
list = (headerL_t *) malloc(sizeof(headerL_t));
if (checkArMagic(srcFd)==TRUE) {
- printf("found ar header ");
while(readArEntry(srcFd, list) == TRUE) {
list->next = (headerL_t *) malloc(sizeof(headerL_t));
*list->next = *head;
lseek(srcFd, head->offset + head->size, SEEK_SET);
}
}
- else
- printf("not an ar header\n");
return(head);
}