home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / WWW / Library / Implementation / LYexit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  848 b   |  51 lines

  1. #ifndef __LYEXIT_H
  2. /*
  3.  *    Avoid include redundancy
  4.  */
  5. #define __LYEXIT_H
  6.  
  7. /*
  8.  *    Copyright (c) 1994, University of Kansas, All Rights Reserved
  9.  *
  10.  *    Include File:    LYexit.h
  11.  *    Purpose:    Provide an atexit function for libraries without such.
  12.  *    Remarks/Portability/Dependencies/Restrictions:
  13.  *        Include this header in every file that you have an exit or
  14.  *            atexit statment.
  15.  *    Revision History:
  16.  *        06-15-94    created Lynx 2-3-1 Garrett Arch Blythe
  17.  */
  18.  
  19. /*
  20.  *    Required includes
  21.  */
  22. #include <stdlib.h>
  23. #include "HTUtils.h"
  24.  
  25. /*
  26.  *    Constant defines
  27.  */
  28. #define exit LYexit
  29. #define atexit LYatexit
  30. #define ATEXITSIZE 32
  31.  
  32. /*
  33.  *    Data structures
  34.  */
  35.  
  36. /*
  37.  *    Global variable declarations
  38.  */
  39.  
  40. /*
  41.  *    Macros
  42.  */
  43.  
  44. /*
  45.  *    Function declarations
  46.  */
  47. PUBLIC void LYexit PARAMS((int status));
  48. PUBLIC int LYatexit PARAMS((void (*function)()));
  49.  
  50. #endif /* __LYEXIT_H */
  51.