Header: stdlib Purpose: Defines the ANSI C functions for number conversion, storage allocation, and similar tasks. File: stdlib.h Author: K.G. Begeman Use: #include "stdlib.h" Defines: EXIT_FAILURE Exit with error. EXIT_SUCCESS Exit with no error. HUGE_VAL Large double. RAND_MAX Range of rand function. struct div_t Result of div function. struct ldiv_t Result of ldiv function. Declares: char *getenv(const char *name); div_t div(int num, int denom); double atof(const char *s); double strtod(const char *s, char **endp); int abs(int n); int atexit(void (*fcn)(void)); int atoi(const char *s); int rand(void); int system(const char*s); ldiv_t ldiv(long num, long denom); long atol(const char *s); long labs(long n); long strtol(const char *s, char **endp, int base); unsigned long strtoul(const char *s, char **endp, int base); void abort(void); void exit(int status); void free(void *p); void qsort(void *base, size_t n,size_t size, int (*cmp)(const void *, const void *)); void srand(unsigned int seed); void *bsearch(const void *key, const void *base, size_t n, size_t size, int (*cmp)(const void *keyval, const void *datum)); void *calloc(size_t nobj, size_t size); void *malloc(size_t size); void *realloc(void *p, size_t size); Warning: System dependent! At the moment implemented for ALLIANT, CONVEX, DEC ALPHA, DEC ULTRIX, HP9000, SILICON GRAPHICS, SUN and DEC VMS. Updates: Apr 11, 1990: KGB, Document created. May 17, 1993: KGB, RAND_MAX for hpux corrected. Sep 22, 1998: KGB/VOG, RAND_MAX for svr4 included. Jun 8, 2009: JPT, Linux now includes from system