Putc writes a character to a specified stream at the current position; putchar writes to stdout.
#include <stdio.h> int putc(int c, FILE *stream); int putchar(int c);
#include <wchar.h>
wint_t putwc(wchar_t c, FILE *stream);
wint_t putwchar(wchar_t c);
c
stream
putchar is identical to:
putc (c, stdout)
Any integer can be passed to putc, but it only writes the lower 8 bits.
These functions are implemented as both macros and functions.
putwc and putwchar are wide-character versions of putc and putchar.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
|---|---|---|
| _putttc | putc | putwc |
| _putttchar | putchar | putwchar |
| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.0 INtime 6.0 (wide-character and generic text versions) |
intime/rt/include/stdio.h intime/rt/include/wchar.h intime/rt/include/tchar.h |
stdio.h wchar.h tchar.h |
clib.lib |