17 lines
199 B
C
17 lines
199 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void out(void)
|
|
{
|
|
printf("atexit() succeeded!\n");
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
if (atexit(out)) {
|
|
fprintf(stderr, "atexit() failed\n");
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|