-

Changes

Jump to: navigation, search

Functions HI-TECH C GETCH

695 bytes added, 20:13, 31 July 2017
Created page with "<strong>GETCH, GETCHE, UNGETCH, PUTCH<strong> ==SYNOPSIS== #include <conio.h> char getch(void) char getche(void) void putch(int c) ==DESCRIPTION== <st..."
<strong>GETCH, GETCHE, UNGETCH, PUTCH<strong>
==SYNOPSIS==

#include <conio.h>

char getch(void)
char getche(void)
void putch(int c)


==DESCRIPTION==
<strong>Getch</strong>() reads a single character from the console keyboard and returns it without echoing. <strong>Getche</strong>() is
similar but does echo the character typed. <strong>Ungetch</strong>()
will push back one character such that the next call to
<strong>getch</strong>() or <strong>getche</strong>() will return that character.
<strong>Putch</strong>() outputs the character c to the console screen,
prepending a carriage return if the character is a newline.

==SEE ALSO==

cgets, cputs

Navigation menu