INtime SDK Help
fputc, fputchar
Send Feedback

Glossary Item Box

fputc writes a single character to an output stream at the current position; fputchar writes to stdout.

#include <stdio.h>

int fputc (int c, FILE *stream);

int fputchar (int c);

Parameters

c
Character to be written.
stream
Pointer to FILE structure.

Remarks

fputchar is equivalent to:

fputc (c, stdout)

fputc and fputchar are similar to putc and putchar, but are functions rather than macros.

Return Values

The character written.
Success.
EOF. Since EOF is a legal integer value, use ferror to check for an actual error.
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdio.h stdio.h clib.lib

See Also

ferror, fgetc, fgetchar, putc, putchar

Copyright ©2000-2014 TenAsys Corporation. All Rights Reserved.