Monday, December 27, 2010

more fread

K&R makes no mention of fread altering the file pointer, but it does mention fseek for this purpose.

That's ok, I guess. I'll just have to keep a variable around to hold how far into the file I am. Then I'll just have to do some pointer arithmetic in each fread call.

No comments:

Post a Comment