16 lines
224 B
C
16 lines
224 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;
|
|
}
|