summaryrefslogtreecommitdiff
path: root/tests/ungets.c
blob: 73741004aaa9db3147f95956197d049fd109bfce (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main() {
 ungetc('a',stdin);
 ungetc('b',stdin);
 printf("%c",fgetc(stdin));
 printf("%c",fgetc(stdin));
 printf("\n");
}