STDLIB - miscellaneous library routines.

Usage:

#include <stdlib.h>

Description:

<stdlib.h> contains definitions for a variety of routines:

void   abort(void);
int    abs(int j);
int    atexit(void (*func)(void));
double atof(const char *nptr);
int    atoi(const char *nptr);
long   atol(const char *nptr);
void * bsearch(const void *key, const void *base, size_t nmemb, size_t size,
           int (*compar)(const void *a, const void *b));
void * calloc(size_t nmemb, size_t size);
div_t  div(int numer, int denom);
void   exit(int status);
void   free(void *ptr);
char * getenv(const char *name);
long   labs(long int j);
ldiv_t ldiv(long int numer, long int denom);
void * malloc(size_t size);
void   qsort(void *base, size_t nmemb, size_t size,
          int (*compar)(const void *a, const void *b));
int    rand(void);
void * realloc(void *ptr, size_t size);
void   srand(unsigned int seed);
double strtod(const char *nptr, char **endptr);
long   strtol(const char *nptr, char **endptr, int base);
unsigned long int strtoul(const char *nptr, char **endptr, int base);
int    system(const char *string);

<stdlib.h> also defines:

RAND_MAX
manifest giving the largest number that will be returned by "rand"
div_t
typedef described in "expl c lib div"
ldiv_t
typedef described in "expl c lib ldiv"

Copyright © 1996, Thinkage Ltd.