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 / 349.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-01  |  701KB  |  2550x3300
Labels: book | poster | reckoner
OCR: Getting Out Gracefully 349 Note error() Note void error( void pr intf( "Nondigit in input Program term exit( Note 6 an end are Three functions make up this program The function main( is a driver pro- lue gram and only serves to ask for input, call the function convert and report on the value returned. The function convert uses whil loop to read until either an end of line or a blank is read. The processing of the digits done inside the while loop The function error does the error handling Note 1:The header file ctype.h is a standard part of each implementation of C. contains many declarations of "utilities that deal with character types. included in this example to allow call to the utility isdigi it that appears the second line referenced by Note The utility isd b defined the file etype.h ...