Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Code/Standard C Library/Functions/getc

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

getc #include <cstdio> int getc( FILE *stream ); The getc() function returns the next character from stream, or EOF if the end of file is reached. getc() is identical to fgetc(). For example: int ch; FILE *input = fopen( "stuff", "r" ); ch = getc( input ); while( ch != EOF ) { printf( "%c", ch ); ch = getc( input ); } Related topics feof - fflush - fgetc - fopen - fputc - fgetc - fread - fwrite - putc - ungetc