123456789101112131415 |
- #include <stdio.h>
- #include <stdlib.h>
- #include "test_helpers.h"
- int main(void) {
- ungetc('h', stdin);
- char c;
- if ((c = getchar()) == 'h') {
- printf("Worked!\n");
- exit(EXIT_SUCCESS);
- }
- printf("failed :( %c\n", c);
- exit(EXIT_FAILURE);
- }
|