|
||
int getc( FILE *fp )
FILE *fp; /* input stream pointer */
|
|
|
Synopsis |
#include "stdio.h"
The getc 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 |
getc returns the character (as an integer) if successful, and EOF (-1) if not.
|
|
Comments |
The getc function is identical to fgetc .
|
|
See Also |
|
|
|
|