Table of Contents | Previous | Next |
fgetc
returns the next character of
stream
as an unsigned char
, (converted to an
int
), or EOF if end
of file or error occurs.fgets
reads at most the next n
-1
characters into the array s
, stopping if a newline is
encountered; the newline is included in the array, which is terminated
by '\0'
. fgets
returns s
,
or NULL if end of file or error occurs.fputc
writes the character c
(converted
to an unsigned int
) on stream
. It
returns the character written, or EOF for error.fputs
writes the string s
(which need
not contain '\n'
) on stream
; it returns
non-negative, or EOF for
error.getc
is equivalent to fgetc
except that
if it is a macro, it may evaluate stream
more than
once.getchar
is equivalent to
getc(stdin)
.gets
reads the next input line into the array
s
; it replaces the terminating newline with
'\0'
. It returns s
, or
NULL if end of file or error occurs.putc
is equivalent to fputc
except that
if it is a macro, it may evaluate stream
more than
once.putchar(c)
is equivalent to putc(c,
stdout)
.puts
writes the string s
and a newline
to stdout
. It returns EOF if an error occurs, non-negative
otherwise.ungetc
pushes c
(converted to an
unsigned char
) back onto stream
, where it
will be returned on the next read. Only one character pushback
per stream
is guaranteed. EOF may not be pushed back.
ungetc
returns the character pushed back, or EOF for error.Table of Contents | Previous | Next |
Last modified: Wed May 03 13:09:25 2000