home *** CD-ROM | disk | FTP | other *** search
- /*_ stdlib.h Thu Feb 25 1988 Modified by: Walter Bright */
- /* Copyright (C) 1986-1988 by Northwest Software */
- /* All Rights Reserved */
-
- #ifndef STDLIB_H
- #define STDLIB_H 1
-
- extern volatile int errno;
-
- /* status for exit() or _exit() */
- #define EXIT_SUCCESS 0
- #define EXIT_FAILURE 1
-
- #if LPTR
- #define NULL 0L
- #else
- #define NULL 0
- #endif
- #define size_t unsigned
- #define ERANGE 103
- #define HUGE_VAL 1.797693134862315e+308
- #define RAND_MAX 32767
- typedef struct { int quot,rem; } div_t;
- typedef struct { long quot,rem; } ldiv_t;
-
- double atof(char *);
- int atoi(char *);
- long atol(char *);
- double strtod(char *,char **);
- long strtol(char *,char **,int);
- unsigned long strtoul(char *,char **,int);
- int rand(void);
- void srand(unsigned);
- void *calloc(size_t,size_t);
- #if __STDC__
- void
- #else
- int
- #endif
- free(void *);
- void *malloc(size_t);
- void *realloc(void *,size_t);
- void abort(void);
- int atexit(void (*)(void));
- void exit(int);
- char *getenv(char *);
- int system(char *);
- void *bsearch(const void *,const void *,size_t,size_t,
- int (*)(const void *,const void *));
- void qsort(void *,size_t,size_t,int (*)(void *,void *));
- int abs(int);
- div_t div(int,int);
- long labs(long);
- ldiv_t ldiv(long,long);
- char *itoa(int,char *,int);
- void perror(char *);
-
- char *ecvt(double,int,int *,int *);
- char *fcvt(double,int,int *,int *);
-
- unsigned _rotl(unsigned,unsigned);
- unsigned _rotr(unsigned,unsigned);
- unsigned long _lrotl(unsigned long,unsigned);
- unsigned long _lrotr(unsigned long,unsigned);
-
- #endif /* STDLIB_H */
-