-

Difference between revisions of "Functions HI-TECH C GETCH"

From HI-TECH C for CP/M Fan WIKI(EN)
Jump to: navigation, search
(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...")
 
 
Line 1: Line 1:
<strong>GETCH, GETCHE, UNGETCH, PUTCH<strong>
+
<strong>GETCH, GETCHE, UNGETCH, PUTCH</strong>
 
==SYNOPSIS==
 
==SYNOPSIS==
  

Latest revision as of 20:13, 31 July 2017

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