#ifndef _Logiscope_CISO99_stdlib_h #define _Logiscope_CISO99_stdlib_h #ifndef _Logiscope_CISO99_SIZE_T typedef unsigned long size_t; #define _Logiscope_CISO99_SIZE_T #endif #ifndef _Logiscope_CISO99_WCHAR_T typedef unsigned long wchar_t; #define _Logiscope_CISO99_WCHAR_T #endif #ifndef _Logiscope_CISO99_DIV_T typedef struct { int quot; int rem; } div_t; #define _Logiscope_CISO99_DIV_T #endif #ifndef _Logiscope_CISO99_LDIV_T typedef struct { long int quot; long int rem; } ldiv_t; #define _Logiscope_CISO99_LDIV_T #endif #ifndef _Logiscope_CISO99_LLDIV_T typedef struct { long long quot; long long rem; } lldiv_t; #define _Logiscope_CISO99_LLDIV_T #endif #ifndef _Logiscope_CISO99_NULL #define NULL 0 #define _Logiscope_CISO99_NULL #endif #define EXIT_FAILURE (1) #define EXIT_SUCCESS (0) #define RAND_MAX (32767) #define MB_CUR_MAX (1) extern double atof(const char*); extern int atoi(const char*); extern long int atol(const char*); extern long long int atoll(const char*); extern double strtod(const char * restrict, char ** restrict); extern float strtof(const char * restrict, char ** restrict); extern long double strtold(const char * restrict, char ** restrict); extern long int strtol(const char * restrict, char ** restrict, int); extern long long int strtoll(const char * restrict, char ** restrict, int); extern unsigned long int strtoul(const char * restrict, char ** restrict, int); extern unsigned long long int strtoull(const char * restrict, char ** restrict, int); extern int rand(void); extern void srand(unsigned int); extern void *calloc(size_t, size_t); extern void free(void *); extern void *malloc(size_t); extern void *realloc(void *, size_t); extern void abort(void); extern int atexit(void (*func)(void)); extern void exit(int status); extern void _Exit(int status); extern char *getenv(const char *); extern int system(const char *); extern void *bsearch(const void *, const void *, size_t, size_t, int (*compar)(const void *, const void *)); extern void qsort(void *, size_t, size_t, int (*compar)(const void *, const void *)); extern int abs(int); extern long int labs(long int); extern long long int llabs(long long int); extern div_t div(int, int); extern ldiv_t ldiv(long int, long int); extern lldiv_t lldiv(long long int, long long int); extern int mblen(const char *, size_t); extern int mbtowc(wchar_t * restrict, const char * restrict, size_t); extern int wctomb(char *, wchar_t); extern size_t mbstowcs(wchar_t * restrict, const char * restrict, size_t); extern size_t wcstombs(char * restrict, const wchar_t * restrict, size_t); #endif /* _Logiscope_CISO99_stdlib_h */