14 lines
221 B
C
14 lines
221 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void) {
|
|
ungetc('h', stdin);
|
|
char c;
|
|
if ((c = getchar()) == 'h') {
|
|
printf("Worked!\n");
|
|
return EXIT_SUCCESS;
|
|
}
|
|
printf("failed :( %c\n", c);
|
|
return EXIT_FAILURE;
|
|
}
|