Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenungetch.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/ungetch.c 00006 * PURPOSE: Ungets a character from stdin 00007 * PROGRAMER: DJ Delorie 00008 Ariadne [ Adapted from djgpp libc ] 00009 * UPDATE HISTORY: 00010 * 28/12/98: Created 00011 */ 00012 00013 #include <precomp.h> 00014 00015 int char_avail = 0; 00016 int ungot_char = 0; 00017 00018 00019 /* 00020 * @implemented 00021 */ 00022 int _ungetch(int c) 00023 { 00024 if (char_avail) 00025 return(EOF); 00026 ungot_char = c; 00027 char_avail = 1; 00028 return(c); 00029 } Generated on Sun May 27 2012 04:36:27 for ReactOS by
1.7.6.1
|