|  | ||
| 
 | 
 int fgetc( FILE *fp ) 
 FILE *fp; /* input stream pointer */ 
 
 | 
 | 
| Synopsis | #include "stdio.h" 
 The fgetc function reads a character from the current location in the stream associated with fp . The current file pointer is updated. 
 | 
 | 
| Parameters | fp is an open input stream pointer. 
 | 
 | 
| Return Value | fgetc returns the character (as an integer) if successful, and EOF (-1) if not. 
 | 
 | 
| Comments | The fgetc function is identical to getc . 
 | 
 | 
| See Also | 
 | |
| 
 | 
 |