declare variables extern and define only once (from ralph)
[unix-history] / usr / src / lib / libc / stdlib / atexit.h
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*
* @(#)atexit.h 8.2 (Berkeley) %G%
*/
/* must be at least 32 to guarantee ANSI conformance */
#define ATEXIT_SIZE 32
struct atexit {
struct atexit *next; /* next in list */
int ind; /* next index in this table */
void (*fns[ATEXIT_SIZE])(); /* the table itself */
};
extern struct atexit *__atexit; /* points to head of LIFO stack */