EasyManua.ls Logo

Fujitsu F2MC-16L - 4.2 Standard I;O Function Interface Getchar

Fujitsu F2MC-16L
68 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
29
4.2 Standard I/O Function Interface Getchar
4.2 Standard I/O Function Interface Getchar
Inputs one character from the standard I/O device.
Getchar
[Interface]
Format int chrcd = getchar();
Parameter None
Return parameter chrcd :Input code
EOF :Error
[Description]
Inputs one character from the standard I/O device. The function returns the input character if
input completes normally. If an error occurs, the function returns EOF (-1).
Whether or not getchar echoes input characters and whether or not it waits for key input are
determined by the operation of the input driver.
[Examples]
Assembler interface
#include scdef.inc
.import_getchar
callp_getchar
cbne a,#h'1a,endcode
: :
C interface
#include "scdef.h"
prog()
{
int c ;
c = getchar() ;
: :
}
*

Other manuals for Fujitsu F2MC-16L

Related product manuals