ReactOS 0.4.15-dev-8231-g29a56f3
ungetch.c File Reference
#include <precomp.h>
Include dependency graph for ungetch.c:

Go to the source code of this file.


int _ungetch (int c)


int char_avail = 0
int ungot_char = 0

Function Documentation

◆ _ungetch()

int _ungetch ( int  c)

Definition at line 22 of file ungetch.c.

24 if (char_avail)
25 return(EOF);
26 ungot_char = c;
27 char_avail = 1;
28 return(c);
const GLubyte * c
Definition: glext.h:8905
#define EOF
Definition: stdio.h:24
#define c
Definition: ke_i.h:80
int char_avail
Definition: ungetch.c:15
int ungot_char
Definition: ungetch.c:16

Referenced by _cgets().

Variable Documentation

◆ char_avail

int char_avail = 0

Definition at line 15 of file ungetch.c.

Referenced by _getch(), _getche(), _kbhit(), and _ungetch().

◆ ungot_char

int ungot_char = 0

Definition at line 16 of file ungetch.c.

Referenced by _getch(), and _ungetch().