Skip to content

Instantly share code, notes, and snippets.

@hfm
Last active January 1, 2016 04:49
Show Gist options
  • Select an option

  • Save hfm/8094196 to your computer and use it in GitHub Desktop.

Select an option

Save hfm/8094196 to your computer and use it in GitHub Desktop.
Linuxシステムプログラミング p.143
#include <stdio.h>
#include <unistd.h>
int main(void)
{
long atexit_max = sysconf(_SC_ATEXIT_MAX);
printf("atexit_max = %ld\n", atexit_max);
return 0;
}
$ ./a.out
atexit_max = 2147483647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment