home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _HANDBOOK_ / APDX_F / F-05.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-18  |  663KB  |  2550x3300
Labels: book | daybook | reckoner | sky
OCR: The ANSI Library fgetc( gets single character from the file associated with fp functional version of the macro getc) Parameters of type FILE indicates the file for input. Return value the value input as type int or EOF when end -of-file IS reached andard input (the fgets( inbuff, accepts input ofa string of maximum length n- das macro from one line of the file Parameters inbuff the address of "the buffer that will lhold the string; an int representing the maximum length of the en end- -of-file string; repr resenting the open file from which the input S to come Return value cha value (the address of inbuff) or NULL in case of error or end- -of-file input Example See the discussion in Section 10.4 and programs nl.c (Section 10.4 and fwrite.c (Section 10.5). in case of error fread bu ffer, si ...