.\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .TH getc 3 (date) "Linux man-pages (unreleased)" .SH NAME getc \- get character from stream .SH LIBRARY Standard C library .RI ( libc ,\~ \-lc ) .SH SYNOPSIS .nf .B #include .P .BI "int getc(FILE *" stream ); .fi .SH DESCRIPTION .BR getc () is equivalent to .BR fgetc (3), except for the BUGS (see below). .P Use .BR fgetc (3) instead. .SH STANDARDS C23, POSIX.1-2024. .SH HISTORY POSIX.1-2001, C89. .SH BUGS .SS Multiple evaluation It may be implemented as a macro, and it may evaluate .I stream more than once. .SS Name The name is inconsistent. It is often confused with .BR getchar (3), as normally .I functions without the "f" prefix in their name are variants that use .IR stdin . .SH SEE ALSO .BR fgetc (3)