ref: 1c58d7b01da37935bf4a4d6c6144b0ab03d5df77
dir: /src/libcoff32/coff32_unpack_hdr.c/
#include <assert.h> #include <scc/coff32/filehdr.h> #include <scc/coff32/coff32.h> void coff32_unpack_hdr(packfun fun, unsigned char *buff, FILHDR *hdr) { int n; n = (*fun)(buff, "sslllss", &hdr->f_magic, &hdr->f_nscns, &hdr->f_timdat, &hdr->f_symptr, &hdr->f_nsyms, &hdr->f_opthdr, &hdr->f_flags); assert(n == FILHSZ); }