How many functions has atexit () registered?

We encountered a problem that a third-party library registered some functions with atexit(). Is there a way to find out how many (or which) functions have been registered?

I checked here , but he said no.

I tried to get ATEXIT_MAXwith sysconf, but it turned out to be a huge number, for example 2^31-1.

Is there any way to make it work?

+4
source share
1 answer

atexit(), , , . , , , .

+2

All Articles