source:
trunk/grep/lib/atexit.c@
3020
      
      | Last change on this file since 3020 was 2557, checked in by , 20 years ago | |
|---|---|
| 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 | |
| 6 | int | 
| 7 | atexit(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.
    
