1 static void 2 sig_when_weakup(int no){ 3 printf("weakup weakup "); 4 longjmp(buf, 1); 5 } 6 7 void weakup_after(int n){ 8 if(setjmp(buf) == 0){ 9 signal(SIGALRM, sig_when_weakup); 10 alarm(n);
11 pause(); 12 } else { 13 printf("i'm weak "); 14 } 15 }
这配色方案没法改的嘛?