|
|
1.1 ! root 1: #include <libc.h> ! 2: ! 3: int (*_atexitfns[NONEXIT])(); ! 4: ! 5: atexit(f) ! 6: int (*f)(); ! 7: { ! 8: int i; ! 9: ! 10: for(i=0; i<NONEXIT; i++) ! 11: if(!_atexitfns[i]){ ! 12: _atexitfns[i] = f; ! 13: return(1); ! 14: } ! 15: return(0); ! 16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.