Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - getche http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   getche

   Usage
   #include <conio.h>
   int getche(void);

   Description
   getche  obtains  a character from stdin with echo.  This  routine will
   return as soon as a charcter is available and not wait for a  carriage
   return.   getche  is the same as getch  except   that   the  character
   is echoed to stdout.

   getche  is  a direct call to DOS. Like getch it  bypasses  the  normal
   buffering done by getchar and getc.

   Note that uUngetc cannot be used with getche.

   Example
   #include <conio.h>
   main()
   {
   int c;
   printf("Input a character: ");
   c = getche();
   printf(" Is an example of getche\n");
   }

   Return Value
   Returns the next character read. getche never returns an error.


See Also: fgetc getc getch getchar putc putchar ungetc

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson