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

Go to the source code of this file.

Functions

int _ungetch (int c)
 

Variables

int char_avail = 0
 
int ungot_char = 0
 

Function Documentation

◆ _ungetch()

int _ungetch ( int  c)

Definition at line 22 of file ungetch.c.

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

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().