
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('*');
}
*
Содержание F2MC-16L Series
Страница 2: ... ...
Страница 4: ... ...
Страница 10: ...vi ...
Страница 12: ...viii ...
Страница 44: ...32 CHAPTER 4 Program Reference for the Standard I O Library ...
Страница 53: ...41 APPENDIX B Running the Sample System Figure Be Project Member List ...
Страница 54: ...42 APPENDIX Figure Bf Set Configuration File Dialog Box ...
Страница 64: ...52 APPENDIX Figure Cb Sample System Memory Map Continued ...
Страница 65: ...53 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 68: ... ...