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 / 567.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  672KB  |  2550x3300
Labels: book | crt screen | daybook | poster | reckoner
OCR: 10.3 Character Input and 567 A Word of Warning in The the facilities getc( aid get char return values of type int; for the beginning value stored pro- int represents single byte of input. A typical mistake grammers to declare variable of type char t hold the value input the by one default of these char utilities. on This will work correctly for most of the input, but in case test type your implementation of Cis that of unsi gned char, the usual for end-of-file will not work correctly For example the program filerr.c in Exam- ple 10-4 modification of cp.c of Example 10-3 It attempts to make copy if ofa you file named on the command line. Be advised that it may hang your system are using microcomputer Example 10-4: filerr.c filerr.c Synopsis Attempts to make copy of file Des igned to be invo ...