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++ 3.0r4 - <b>getche</b> 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 character is available and not await a carriage return.
   getche is the same as getch except that the character is echoed to
   stdout. Like getch it bypasses the normal buffering done by getchar and
   getc. ungetc cannot be used with getche.

Example 

   #include <conio.h>
   #include <stdio.h>
   #include <stdlib.h>

   int main()
   {
       int c;
       printf("Input a character: ");
       c = getche();
       printf(" Is an example of getche\n");
       return EXIT_SUCCESS;
   }

Return Value

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

See Also

   fgetc, getc, getch, getchar, putc, putchar, ungetc



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