![Fujitsu F2MC-16L Series User Manual Download Page 40](http://html.mh-extra.com/html/fujitsu/f2mc-16l-series/f2mc-16l-series_user-manual_118382040.webp)
28
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.
■
Putchar
[
Interface
]
Format
int ercd = putchar(int chrcd);
Parameter
chrcd
:Output character code
Return parameter ercd
:Output character code
:Normal completion
EOF
:Error
[
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
#include scdef.inc
.import _putchar
mov
a, "*"
pushw
a
callp
_putchar
popw
a
❍
C interface
#include "scdef.h"
prog()
{
putchar('*');
}
*
Summary of Contents for F2MC-16L Series
Page 2: ... ...
Page 4: ... ...
Page 10: ...vi ...
Page 12: ...viii ...
Page 44: ...32 CHAPTER 4 Program Reference for the Standard I O Library ...
Page 53: ...41 APPENDIX B Running the Sample System Figure Be Project Member List ...
Page 54: ...42 APPENDIX Figure Bf Set Configuration File Dialog Box ...
Page 64: ...52 APPENDIX Figure Cb Sample System Memory Map Continued ...
Page 65: ...53 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 68: ... ...