Functions HI-TECH C GETCH

Revision as of 20:13, 31 July 2017 by Kumokosi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

GETCH, GETCHE, UNGETCH, PUTCH

SYNOPSIS

#include  <conio.h>

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


DESCRIPTION

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

SEE ALSO

cgets, cputs