lang-bootstrap/05/main.c

17 lines
251 B
C
Raw Normal View History

2022-02-14 22:43:25 -05:00
#define _STDLIB_DEBUG
2022-02-15 22:41:18 -05:00
#include <math.h>
#include <stdio.h>
2022-02-16 12:25:14 -05:00
#include <signal.h>
void test_signal_handler(int x) {
printf("interompu\n");
_Exit(0);
}
2022-02-15 16:36:52 -05:00
int main(int argc, char **argv) {
2022-02-16 12:25:14 -05:00
signal(SIGINT, test_signal_handler);
while (1){}
return 0;
2022-02-09 22:44:27 -05:00
}
2022-02-12 21:27:57 -05:00