Guardian C Library Calls Reference Manual
putchar
3-144 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
putchar
The putchar function writes a character to the standard output file.
character
specifies the character to be written.
Return Value
is the character written if the operation is successful; otherwise, putchar returns the
value EOF.
Usage Guidelines
•
The putchar function might be implemented as a macro in a future release.
Example
This example writes the letter “a” to the standard output file:
#include <stdioh>
int status;
int c;
c = 'a';
status = putchar(c);
#include <stdioh>
int putchar(int character);