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

ungetch.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 doxygen 1.7.6.1

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