So, it uses fgetc(stdin) and ungetc(stdin). Thanks root4!