www.delorie.com/djgpp/doc/libc-2.01/libc_314.html   search  
Go to the first, previous, next, last section, table of contents.


getc

Syntax

#include <stdio.h>

int getc(FILE *file);

Description

Get one character from file.

Return Value

The character ([0..255]) or EOF if eof or error.

Example

int c;
while ((c=getc(stdin)) != EOF)
  putc(c, stdout);


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997