INtime SDK Help
fputc, fputchar, fputwc

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);

#include <wchar.h>

win_t fputwc(wint_t c, FILE *stream);

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.

fputwc is the wide-character version of fputc.

Return Values

The character written.
Success.
fputchar and fputc return EOF on error. fputwc returns WEOF on error. Since EOF is a legal integer value, use ferror to check for an actual error.
Failure.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_fputtc fputc fputwc

Requirements

Versions Defined in Include Link to
INtime 3.0
INtime 6.0 (wide-character and generic text fundtions)
intime/rt/include/stdio.h
intime/rt/include/wchar.h
intime/rt/include/tchar.h
stdio.h
wchar.h
tchar.h
clib.lib
See Also