Sync usage with man page.
[netbsd-mini2440.git] / external / gpl2 / xcvs / dist / lib / atexit.c
blobf4873c9ee34090e9cf293070f35d6dd2c77cfeaf
1 /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2 /* This function is in the public domain. --Mike Stump. */
4 #ifdef HAVE_CONFIG_H
5 # include <config.h>
6 #endif
8 int
9 atexit (void (*f) (void))
11 /* If the system doesn't provide a definition for atexit, use on_exit
12 if the system provides that. */
13 on_exit (f, 0);
14 return 0;