1#include <stdio.h>
2#include <stdlib.h>
3
4void
5fx (void)
6{
7 puts (s: "At exit fx");
8}
9
10void
11foo (void)
12{
13 atexit (func: fx);
14}
15

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of glibc/dlfcn/bug-atexit2-lib.c