from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
| You are here: manpages
getc
Section: C Library Functions (3) Updated: 202-1-10 Index
Return to Main Contents
NAME
getc - get character from stream
LIBRARY
Standard C library
( libc,~ -lc)
SYNOPSIS
#include <stdio.h>
int getc(FILE *stream);
DESCRIPTION
getc()
is equivalent to
fgetc(3),
except for the BUGS
(see below).
Use
fgetc(3)
instead.
STANDARDS
C23, POSIX.-2024.
HISTORY
POSIX.-2001, C89.
BUGS
Multiple evaluation
It may be implemented as a macro,
and it may evaluate
stream
more than once.
Name
The name is inconsistent.
It is often confused with
getchar(3),
as normally
<stdio.h>
functions without the "f" prefix in their name
are variants that use
stdin.
SEE ALSO
fgetc(3)
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- STANDARDS
-
- HISTORY
-
- BUGS
-
- Multiple evaluation
-
- Name
-
- SEE ALSO
-
|