1/* 2 * Copyright (c) 1990 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7
| 1/* 2 * Copyright (c) 1990 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7
|
| 8 9/* 10 11@deftypefun int xatexit (void (*@var{fn}) (void)) 12 13Behaves as the standard @code{atexit} function, but with no limit on 14the number of registered functions. Returns 0 on success, or @minus{}1 on 15failure. If you use @code{xatexit} to register functions, you must use 16@code{xexit} to terminate your program. 17 18@end deftypefun 19 20*/ 21
|
8/* Adapted from newlib/libc/stdlib/{,at}exit.[ch]. 9 If you use xatexit, you must call xexit instead of exit. */ 10 11#include "ansidecl.h" 12#include "libiberty.h" 13 14#include <stdio.h> 15
--- 67 unchanged lines hidden --- | 22/* Adapted from newlib/libc/stdlib/{,at}exit.[ch]. 23 If you use xatexit, you must call xexit instead of exit. */ 24 25#include "ansidecl.h" 26#include "libiberty.h" 27 28#include <stdio.h> 29
--- 67 unchanged lines hidden --- |