| Last change
 on this file since 73 was             10, checked in by bird, 23 years ago | 
        
          | 
Initial revision
 | 
        
          | 
              
Property                 cvs2svn:cvs-rev
 set to                 1.1
Property                 svn:eol-style
 set to                 native
Property                 svn:executable
 set to                 * | 
        
          | File size:
            353 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 | #ifdef HAVE_ON_EXIT | 
|---|
| 7 |  | 
|---|
| 8 | int | 
|---|
| 9 | atexit(f) | 
|---|
| 10 | void (*f)(); | 
|---|
| 11 | { | 
|---|
| 12 | /* If the system doesn't provide a definition for atexit, use on_exit | 
|---|
| 13 | if the system provides that.  */ | 
|---|
| 14 | on_exit (f, 0); | 
|---|
| 15 | return 0; | 
|---|
| 16 | } | 
|---|
| 17 |  | 
|---|
| 18 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.