Phil Wood wrote:
It works, but I think args 2 and 3 (of 4) to fread are swapped.
Unless it forces the kernel to read a character at a time?
Line 1048: amt_read = fread((char *)&hdr, 1, sizeof(hdr), fp);
That call says "read 'sizeof(hdr)' 1-byte entities, and return the
number of 1-byte ent
It works, but I think args 2 and 3 (of 4) to fread are swapped.
Unless it forces the kernel to read a character at a time?
Line 1048: amt_read = fread((char *)&hdr, 1, sizeof(hdr), fp);
FREAD(3):
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
..., s