Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

File size information in C

Name: Anonymous 2010-05-29 15:30

Hey, /prog/

When you have a pointer to a FILE structure, what's the standard way of determining the size (in bytes) of the open file?

Name: Anonymous 2010-05-29 18:34

>>8
The alternative to fseek/ftell is to read the whole file until you get an EOF. The OP did after all ask how to do it in C, not how to do it in POSIX or ENTERPRISE BULLSHITE.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List