30#ifndef _RWSTD_CSTDLIB_H_INCLUDED
31#define _RWSTD_CSTDLIB_H_INCLUDED
41# define EXIT_FAILURE 1
45# define EXIT_SUCCESS 0
49# define MB_CUR_MAX _RWSTD_MB_CUR_MAX
57# define RAND_MAX _RWSTD_RAND_MAX
80typedef _RWSTD_SIZE_T size_t;
82typedef unsigned long size_t;
86double atof (
const char*);
87int atoi (
const char*);
88long int atol (
const char*);
89double strtod (
const char*,
char**);
90long int strtol (
const char*,
char**,
int);
91unsigned long int strtoul (
const char*,
char**,
int);
93void srand (
unsigned int);
94void*
calloc (
size_t,
size_t);
96void* malloc (
size_t) ;
97void* realloc (
void*,
size_t);
99int atexit (
void (*) (
void));
101char* getenv (
const char*);
103void* bsearch (
const void*,
const void*,
size_t,
size_t,
104 int (*) (
const void*,
const void*));
105void qsort (
void*,
size_t,
size_t,
int (*) (
const void *,
const void *));
108long int labs (
long int);
109ldiv_t ldiv (
long int,
long int);
110int mblen (
const char*,
size_t);
111int mbtowc (
wchar_t*,
const char*,
size_t);
112int wctomb (
char*,
wchar_t);
113size_t mbstowcs (
wchar_t*,
const char*,
size_t);
114size_t wcstombs (
char*,
const wchar_t*,
size_t);
119#ifndef _RWSTD_NO_EXTERN_C_COMPATIBILITY
120# ifndef _RWSTD_NO_EXTERN_C_OVERLOAD
123 typedef int (*__rw_compar_t)(
const void*,
const void*);
130 bsearch (
const void *__key,
const void *__base,
size_t __n,
size_t __size,
131 int (*__cmp)(
const void*,
const void*))
133 return bsearch (__key, __base, __n, __size,
139 qsort (
void *__base,
size_t __n,
size_t __size,
140 int (*__cmp)(
const void*,
const void*))
142 return _RWSTD_C::qsort (__base, __n, __size,
153 div (
long __x,
long __y)
155 return ldiv (__x, __y);
std::allocator< C > calloc
IMPORT_C SInt32 atexit(Void(*function)(Void))
IMPORT_C SInt32 system(const Char *)
#define _RWSTD_REINTERPRET_CAST(T, x)
#define _RWSTD_NAMESPACE(name)