home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_10 / 581.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  604KB  |  2550x3300
Labels: binder | book | daybook | reckoner
OCR: 10.5 Reading Blocks of Data at a Time 581 ig). nes Example 10-8: fread.c ion fer he fread.c n- Synopsis Reads standa ro from transacti output file ons and el Lements displays of type them on struct trans) Fqo ect ive ustrate the use of fread) with structures Include Files #include <stdio h> ons to #inci lude <stdl ib h> nary amed #de Cons fine tant BUF SIZE Definiti 80 ions np Type Descripti ions struct trans itten int tvpe, eITOr cha payee _memo BUF SIZE]; the doubl le amount, etum uns igned tax deduct:l; unsi gned cleared:1 Functi on Prototypes void print trans struct trans *outtrans PRECONDITION: The struct pa trans rameter dec outtrans lared by cont the ains calling the address funct ion. of ecord POSTCOND ITION by Displays separated out trans the with on cont tents standard verti of i ...