alarm

2017-11-15 by Liangsm_

#include "io.h"void sighandler(int signo){ printf("timeout/n");}int main(int argc, char const *argv[]){ /* code */ signal(SIGALRM, sighandler); alarm(5); while (1)sleep(1); return 0;}
最新更新:

第七城市

栏目导航(关闭)