-

Functions HI-TECH C ATEXIT

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 18:16, 31 July 2017 by Kumokosi (talk | contribs) (Created page with "<strong>ATEXIT</strong> ==SYNOPSIS== #include <stdlib.h> int atexit(void (*func)(void)); ==DESCRIPTION== The <strong>atexit</strong>() function registers the function...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ATEXIT

SYNOPSIS

#include  <stdlib.h>

int atexit(void (*func)(void));


DESCRIPTION

The atexit() function registers the function pointed to by func, to be called without arguments at normal program termination. Ateixt() returns zero if the registration succeeds, nonzero if it fails. On program termination, all functions registered by atexit() are called, in the reverse order of their registration.

SEE ALSO

exit