home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_06 / 345.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-01  |  622KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: 6.5 Getting Out Gracefully 345 look for delimi ter) int look for del imiter( char del imiter, char end of line int iochar, while iocha qetchar() END OF LINE iochar DELIMI TER return Note 3 return Note 4 The structure of this program is very similar to that of the previous example pro- gram. It contains the function main() and a subfunction look or del imi ter() The function ma in) is a driver; it requests input for the subfunction to process. calls the subfunction, and reports the status at return from the subfunction. The subfunction lcok for del imi ter uses while loop to read line of input and processes each input character separately. Note Since the return statement is used with an associated expression, the subfunction lcck for del imiter() returns : value. The value returned 15 assig ...