File: atexit.c

package info (click to toggle)
cvs 2%3A1.12.13%2Breal-15
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 18,124 kB
  • sloc: ansic: 100,316; sh: 33,775; asm: 3,281; perl: 2,818; ada: 1,681; makefile: 1,587; yacc: 1,184; pascal: 1,082; cpp: 1,001; lisp: 35
file content (15 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
/* This function is in the public domain.  --Mike Stump. */

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

int
atexit (void (*f) (void))
{
  /* If the system doesn't provide a definition for atexit, use on_exit
     if the system provides that.  */
  on_exit (f, 0);
  return 0;
}