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 / 569.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  823KB  |  2550x3300
Labels: book | reckoner
OCR: 10.3 Character Input and Output 569 The Utility ungetc( The c library provides facility, ungetc for putting a single character back in ote an input stream Then the character will be the the first character character read be in the returmed next to input the statement. The parameters to unge tc() are input buffer and the FILE pointer associated with the file Note that the first parameter is of type int Certain restrictions exist for the use of ungetc() Only oue character can be returned to each FILE and EOF cannot be returned The program ungetc.c in Example 10-5 illustrates the use of the ungetc() the digits. facility This The Is done program with seeks while out all loops strings where of the alphabetic input value is characters tested and by strings character of ge in Here processing faci ...