Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygengetche.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
1.7.6.1
|