Join Nostr
2025-06-11 15:01:04 UTC
in reply to

Julia Evans on Nostr: nprofile1q…4pppr you're making me wonder what the "minimal" set of C it's useful to ...

you're making me wonder what the "minimal" set of C it's useful to understand is

for example I feel like understanding everything that's going on in this extrmely small program is a good start, but probably there are a couple of other things that are useful too?

#include <stdio.h>
#include <signal.h>
int main() {
struct sigaction sa = {.sa_handler = SIG_IGN, .sa_flags = 0};
sigaction(SIGINT, &sa, NULL);
printf("SIGINT now ignored\n");
return 0;
}