void ungets(string s)
This function puts a string back in the input buffer. The string can then be read with eg read() , gets() or getchar() .
The string must not contain line-feeds.
read() , gets() , getchar()