home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / STORM2.DMS / in.adf / Includes.LHA / stdlib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-28  |  1.5 KB  |  78 lines

  1. #if!defined _INCLUDE_STDLIB_H
  2. #define _INCLUDE_STDLIB_H
  3.  
  4. /*
  5. **  $VER: stdlib.h 10.1 (19.7.95)
  6. **  Includes Release 40.15
  7. **
  8. **  (C) Copyright 1995 Haage & Partner
  9. **     All Rights Reserved
  10. */
  11.  
  12. typedef unsigned size_t;
  13. typedef int wchar_t;
  14.  
  15. #if!defined NULL
  16. #define NULL 0
  17. #endif
  18.  
  19. #if!defined ERANGE
  20. #define ERANGE 1000
  21. #endif
  22.  
  23. #if!defined HUGE_VAL
  24. #define HUGE_VAL 1.797693134862316E+308
  25. #endif
  26.  
  27. typedef struct {
  28.  int quot;
  29.  int rem;
  30. } div_t;
  31.  
  32. typedef struct {
  33.  long quot;
  34.  long rem;
  35. } ldiv_t;
  36.  
  37. double atof(const char *);
  38. int atoi(const char *);
  39. long atol(const char *);
  40. double strtod(const char *, char **);
  41. long strtol(const char *, char **, int);
  42. unsigned long strtoul(const char *, char **, int);
  43. long long strtovl(const char *, char **, int);
  44. unsigned long long strtouvl(const char *, char **, int);
  45.  
  46. int abs(int);
  47. div_t div(int, int);
  48. long int labs(long int);
  49. ldiv_t ldiv(long, long);
  50. long long int vlabs(long long int);
  51.  
  52. #define RAND_MAX 0x7fff
  53. int rand( void );
  54. void srand(unsigned);
  55.  
  56. #ifdef __cplusplus
  57. unsigned Random(unsigned);
  58. double Random();
  59. #endif
  60.  
  61. void *calloc(size_t , size_t);
  62. void free(void *);
  63. void *malloc(size_t);
  64. void *realloc(void *, size_t);
  65. extern unsigned int __MEMFLAGS;
  66.  
  67. void abort(void);
  68. int atexit(void (*_func)(void));
  69. void exit(int);
  70.  
  71. char *getenv(const char *);
  72. int system(const char *);
  73.  
  74. void *bsearch(const void *, const void *, size_t, size_t, int (*)(const void *, const void *));
  75. void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
  76.  
  77. #endif
  78.