Advertisement
Bkmz

Untitled

Apr 27th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <signal.h>
  4.  
  5. void handler(int num)
  6. {
  7.         printf("Called signal\n");
  8. }
  9.  
  10. void main(void)
  11. {
  12.     signal(SIGUSR1, handler);
  13.     getchar();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement