Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <signal.h>
- void sigfun(int sig) { }
- int main()
- {
- (void) signal(SIGINT, sigfun);
- int c;
- while ((c = getchar()) != 'q') {
- if (c == '\n')
- printf("?\n");
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment