Javier Kohen to Westcot. Ensign:
SW> long filesize(FILE *stream) {
SW> long curpos, length;
SW> curpos = ftell(stream);
SW> fseek(stream, SEEK_END);
SW> length = ftell(stream);
SW> fseek(stream, curpos);
SW> return length;
SW> }
Mine is the same, except I do all the error checks... shouldn't you do
that?
For info about my document server:
send a mail with "InfoMail" in the To: field at any of my Fido-like
ddresses.
InterNet: jkohen@tough.com * FidoNet: 4:900/748.3 * Sk-NetWork: 200:201/201.2
-=[ PGP keyID 3423EAA9 ]=-
... Today Your Love, Tomorrow the World þ Ramones
--- Terminate 4.00/Pro
4:900/748.3)
---------------
* Origin: The King of The Ring BBS þ +54-1-OFF-LINE þ TLD 0 - 7
|