ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

getche.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  *      Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details
00004  * PROJECT:     ReactOS system libraries
00005  * FILE:        lib/msvcrt/conio/getche.c
00006  * PURPOSE:     Reads a character from stdin
00007  * PROGRAMER:   DJ Delorie
00008                 Ariadne
00009  * UPDATE HISTORY:
00010  *              28/12/98: Created
00011  */
00012 
00013 #include <precomp.h>
00014 
00015 int _getche(void)
00016 {
00017   if (char_avail)
00018     /*
00019      * We don't know, wether the ungot char was already echoed
00020      * we assume yes (for example in cscanf, probably the only
00021      * place where ungetch is ever called.
00022      * There is no way to check for this really, because
00023      * ungetch could have been called with a character that
00024      * hasn't been got by a conio function.
00025      * We don't echo again.
00026      */
00027     return(_getch());
00028   return (_putch(_getch()));
00029 }

Generated on Fri May 25 2012 04:34:53 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.