home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_03 / 8n03098a < prev    next >
Text File  |  1990-03-20  |  1KB  |  72 lines

  1.  
  2.  
  3. *** Listing 2 ***
  4.  
  5. /*
  6.  * stdlib.h - general utilities (for UNIX 4.2 BSD)
  7.  */
  8. #ifndef _STDLIB_H_INCLUDED
  9.  
  10. #include <quirks.h>
  11.  
  12. #define EXIT_SUCCESS 0
  13. #define EXIT_FAILURE 1
  14.  
  15. #define MB_CUR_MAX 1
  16.  
  17. #define NULL ((void_star)0)
  18.  
  19. #define RAND_MAX 2147483647
  20.  
  21. typedef struct {int quot, rem} div_t;
  22. typedef struct {long quot, rem} ldiv_t;
  23.  
  24. #ifndef _SIZE_T_DEFINED
  25. typedef unsigned size_t;
  26. #define _SIZE_T_DEFINED
  27. #endif
  28.  
  29. #ifndef _WCHAR_T_DEFINED
  30. typedef char wchar_t;
  31. #define _WCHAR_T_DEFINED
  32. #endif
  33.  
  34. void abort();
  35. double atof();
  36. int atoi();
  37. long atol();
  38. void_star calloc();
  39. void exit();
  40. void free();
  41. char *getenv();
  42. void_star malloc();
  43. void qsort();
  44. int rand();
  45. void_star realloc();
  46. void srand();
  47. int system();
  48.  
  49. /*
  50.  * interim macro definitions for functions
  51.  */
  52. #define abs(j) ((j) >= 0 ? (j) : -(j))
  53. #define labs(j) abs((long)(j))
  54.  
  55. /*
  56.  * missing functions
  57.  */
  58. int atexit();
  59. void_star bsearch();
  60. div_t div();
  61. ldiv_t ldiv();
  62. int mblen();
  63. int wctomb();
  64. int mbtowc();
  65. double strtod();
  66. long strtol();
  67. unsigned long strtoul();
  68.  
  69. #define _STDLIB_H_INCLUDED
  70. #endif
  71.  
  72.