SilverScreen Solid Modeler

getc

getc

Previous topic Next topic  

getc

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

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

fgetc , putc