source: trunk/grep/lib/atexit.c@ 2787

Last change on this file since 2787 was 2557, checked in by bird, 19 years ago

grep 2.5.1a

File size: 324 bytes
Line 
1/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */
2/* This function is in the public domain. --Mike Stump. */
3
4#include "config.h"
5
6int
7atexit(f)
8 void (*f)();
9{
10 /* If the system doesn't provide a definition for atexit, use on_exit
11 if the system provides that. */
12 on_exit (f, 0);
13 return 0;
14}
Note: See TracBrowser for help on using the repository browser.