C / conio.h / ungetch
cgets, clreol, clrscr, cprintf, cputs, cscanf, delline, getch, getche, getpass, gettext, gettextinfo, gotoxy, highvideo, inport, insline, kbhit, lowvideo, movetext, normvideo, outport, putch, puttext, _setcursortype, textattr, textbackground, textcolor, textmode, » ungetch, wherex, wherey, window,
Funcion: ungetch()
Sintaxis:
int ungetch(int c);

Descripcion: Empuja el carácter especificado por el argumento c de vuelta a la consola, forzando el carácter empujado, c, a ser el siguiente carácter leído. La función ungetch no funciona si es llamada más de una vez antes de la siguiente lectura.


Ejemplo:
#include <conio.h>
#include <ctype.h>
 
int main() {
   char c;
 
   clrscr();
   cprintf( "Ejemplo de \"ungetch\"\r\n\r\n" ); 
   cprintf( "Escribe una letra: " );
   if( (c = getche()) != EOF )
      ungetch( toupper( c ) );
   cprintf( "Se ha le&iacute;do: \'%c\'\r\n", getch() );
   cprintf( "Pulsa una tecla para continuar..." );
   getch();
 
   return 0;
}

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h