CHAPTER 4 Program Reference for the Standard I/O Library
4.1
Standard I/O Function Interface Putchar
Outputs one character to the standard I/O device.
I Putchar
[Interface]
Format
Parameter
Return parameter ercd
[Description]
Outputs one character to the standard I/O device. The function returns the output character if the
character is output normally. If an error occurs, the function returns EOF (-1).
[Examples]
❍ Assembler interface
❍ C interface
28
int ercd = putchar(int chrcd);
chrcd
:Output character code
:Output character code
EOF
#include scdef.inc
.import _putchar
mov
a, "*"
pushw
a
callp
_putchar
popw
a
#include "scdef.h"
prog()
{
putchar('*');
}
:Normal completion
:Error
*