TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Peter Collis
date: 1996-02-08 10:55:52
subject: File pointers

-= Pete Replied to Paul Edwards about: File pointers =-

G'day Paul

 PC> Try this.
 
 PC> ============= SNIP =================
 PC> #include 
 PC> #include 
 
 PC> int main (void) {
 
 PC> FILE *myfile;
 PC> long midpoint;
 
 PC>     myfile = fopen("filename.dat", "rb");
 PC>     midpoint = filelength(fileno(myfile)) / 2;

 PE> fseek() with SEEK_END followed by ftell() would be compliant.

trust me to go down the wrong path :-(

   -=Pete=-

--- OMX/Blue Wave v2.12
* Origin: Gates of Hell (3:713/914.16)
SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 430 510 808 809 932 934
SEEN-BY: 712/508 515 713/111 317 601 611 615 618 700 826 888 914 714/906
SEEN-BY: 800/1 7877/2809
@PATH: 713/914 615 888 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

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™.