2017-10-21 23:40:19 +00:00
|
|
|
/****************************************************************
|
|
|
|
*
|
|
|
|
* stdlib.h - standard library functions
|
|
|
|
*
|
|
|
|
* February 1989
|
|
|
|
* Mike Westerfield
|
|
|
|
*
|
|
|
|
* Copyright 1989
|
|
|
|
* Byte Works, Inc.
|
|
|
|
*
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef __stdlib__
|
|
|
|
#define __stdlib__
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL (void *) 0L
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __size_t__
|
|
|
|
#define __size_t__ 1
|
|
|
|
typedef unsigned long size_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define RAND_MAX 32767
|
|
|
|
#define EXIT_FAILURE (-1)
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#define MB_CUR_MAX 1
|
|
|
|
|
|
|
|
typedef struct {int quot,rem;} div_t;
|
|
|
|
typedef struct {long quot,rem;} ldiv_t;
|
|
|
|
|
|
|
|
#ifndef __KeepNamespacePure__
|
|
|
|
#define clalloc(x,y) calloc((x),(y))
|
|
|
|
#define cfree(x) free(x)
|
|
|
|
#define mlalloc(x) malloc(x)
|
|
|
|
#define relalloc(x,y) realloc((x),(y))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int abs(int);
|
|
|
|
void abort(void);
|
2020-01-13 00:37:50 +00:00
|
|
|
void *aligned_alloc(size_t, size_t);
|
2017-10-21 23:40:19 +00:00
|
|
|
int atexit(void (*__func)(void));
|
|
|
|
double atof(const char *);
|
|
|
|
int atoi(const char *);
|
|
|
|
long atol(const char *);
|
|
|
|
void *bsearch(const void *, const void *, size_t, size_t, int (*__compar)(const void *, const void *));
|
|
|
|
void *calloc(size_t, size_t);
|
|
|
|
div_t div(int, int);
|
|
|
|
void exit(int);
|
|
|
|
void _exit(int);
|
2018-09-10 04:24:47 +00:00
|
|
|
void _Exit(int);
|
2017-10-21 23:40:19 +00:00
|
|
|
void free(void *);
|
|
|
|
char *getenv(const char *);
|
|
|
|
long labs(long);
|
|
|
|
ldiv_t ldiv(long, long);
|
|
|
|
void *malloc(size_t);
|
|
|
|
void qsort(void *, size_t, size_t, int (*__compar)(const void *, const void *));
|
|
|
|
int rand(void);
|
|
|
|
void *realloc(void *, size_t);
|
|
|
|
void srand(unsigned);
|
|
|
|
double strtod(const char *, char **);
|
|
|
|
long strtol(const char *, char **, int);
|
|
|
|
unsigned long strtoul(const char *, char **, int);
|
|
|
|
int system(const char *);
|
|
|
|
|
|
|
|
#endif
|