Go to the first, previous, next, last section, table of contents.


fgetc

Syntax

#include <stdio.h>

int fgetc(FILE *file);

Description

Returns the next character in the given file as an unsigned char.

Return Value

The given char (value 0..255) or EOF at end-of-file.

Portability

ANSI, POSIX

Example

int c;
while((c=fgetc(stdin)) != EOF)
  fputc(c, stdout);


Go to the first, previous, next, last section, table of contents.