cppreference.com > Standard C I/O > ungetc
ungetc
Syntax:
  #include <stdio.h>
  int ungetc( int ch, FILE *stream );

The function ungetc() puts the character ch back in stream.