TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: STEVE WESTCOT
from: JAVIER KOHEN
date: 1997-04-22 12:30:00
subject: file size

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

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.