Syntax
#include <conio.h> int _putch(int c);Description
If successful, _putch returns c. If an error occurs, _putch returns EOF.
This example defines a function gchar that is similar to _getche using the _putch and _getch functions:
#include <conio.h>
int gchar(void)
{
int ch;
ch = _getch();
_putch(ch);
return (ch);
}
Related Information