Guest User

Untitled

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <signal.h>
  3.  
  4. void sigfun(int sig) { }
  5.  
  6. int main()
  7. {
  8. (void) signal(SIGINT, sigfun);
  9. int c;
  10. while ((c = getchar()) != 'q') {
  11. if (c == '\n')
  12. printf("?\n");
  13. }
  14. return 0;
  15. }
Add Comment
Please, Sign In to add comment