programming:c:function getcWhat links here?

Syntax

int getc(FILE *stream)


Description

The getc() function, which gets a character from a stream, is identical to the fgetc() function. The getc() function obtains the next byte (if present) as an unsigned char converted to an int, from the input stream pointed to by stream, and then advances the associated file position indicator for the stream (if defined).

parameters



Return Values

The getc() function returns the next character from the input stream pointed to by stream. If the stream is at the end of the file, the end-of-file indicator for the stream is set and getc() returns EOF. If a read error occurs, the error indicator for the stream is set and getc() returns EOF. The functions feof() and ferror() can be used to distinguish error conditions from EOF.

On failure, errno is set to one of the following values:
EACCES Another process has the file locked.
EBADF stdin is not a valid stream opened for reading.
EINTR A signal interrupted the call.
EIO An input error occurred.
EISDIR The open object is a directory, rather than a file.
ENOMEM Memory could not be allocated for internal buffers.
ENXIO A device error occurred.
EOVERFLOW The file is a regular file and an attempt was made to read at or beyond the offset maximum associated with the corresponding stream.
EWOULDBLOCK The underlying file descriptor is a non-blocking socket and no data is ready to be read.
programming:c:function getc
programming:c:function strcpy
programming:c:function printf
programming:c:function strdup
programming - javascript - methods - unshift
Programming - Pascal - function - format
programming:c:functions:_splitpath
programming - sqlite3 - c interface - sqlite3_step()
programming - pascal - function - copy
programming - C - function strncpy
programming:c:function fgetc
programming - C - function getc
programming:c:function getchar
programming:c:function ispunct
programming - C - function strcpy
programming:c:function fputc
programming - pascal - function - length
programming:c:function isupper
filename:programming:c:function getc
filename:programming%3Ac%3Afunction%20getc
last edit:April 04 2009 20:02:08 (6005 days ago)
ct = 1757738627.000000 = September 13 2025 00:43:47
ft = 1238889728.000000 = April 04 2009 20:02:08
dt = 518848899.000000