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 / 566.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  698KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: 566 Chapter Input and Output invoked with the wrong number of command line arguments message as to the correct usage of the program is issued and the program is termi- nated. Note 4: If the number of arguments is correct an attempt to open file with the name that appears as the second command line argument argv [1]is made with call to fopen() The return value from fopen exam- ined to detect an error If one found an crror message is issued and the program S terminated Note If no error is encountered in opening the input file, an attempt is made to open a file with the name that appears as the third command line argu- ment. Again, if an error is encountered message to that fact issued and the program terminated. The library function called to terminate the program. One of its features to clo ...