Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 ユーザーズマニュアル
製品コード
SW006021-1
Library Functions
2012 Microchip Technology Inc.
DS52053B-page 335
GETCHE
Synopsis
#include <conio.h>
char getche (void)
Description
The
getche()
function is provided as an empty stub which can be completed as each
project requires. Typically this function will read one byte of data from a peripheral that
is associated with stdin, and return this value. Unlike getch(), it echoes this character
received.
is associated with stdin, and return this value. Unlike getch(), it echoes this character
received.
Example
#include <conio.h>
char result;
void
main (void)
{
result = getche();
}
See Also
getch()
, getchar()
GETCHAR
Synopsis
#include <stdio.h>
int getchar (void)
Description
The
getchar()
routine usually reads from stdin, but is implemented as a call to
getche()
.
Example
#include <stdio.h>
void
main (void)
{
int c;
while((c = getchar()) != EOF)
putchar(c);
}
See Also
getc()
, getche()
Note
This routine calls getche().