home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_11 / 632.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  489KB  |  2550x3300
Labels: book | crt screen | daybook | reckoner | screen | sky
OCR: 632 Chapter 11 Library and Preprocessor Facilities int main( void struct trans *T. array; FILE fp, in recs; long numbytes; fopen( "transact" "yl ) NULL pr ex "Transact: ion file coul dn it be opened \n" ; fseek( fp, OL Note 2 numbytes fp ; nrecs (int numbytes sizeof struct trans if array struct trans cal loc( nrecs, Note 3 printf( "Unable to get the sizeof( space struct trans NULL exit( fseek( fp, OL, 0 Note4 Note fread( sizeof( *t nrecs ad intf( "Error in reading the file\n" exit for 0; nrecs; i++ orirt trans array[i] ); free fc] Lose return print trans() void print trans( struct trans outtrans Cleared field out trans ->c leared intf else printf( NULI read rans