Go to the documentation of this file.
7 #define __LLVM_MOS_SDK 1
14 #define EXIT_SUCCESS 0
15 #define EXIT_FAILURE 1
17 #define RAND_MAX 32767
19 #define MB_CUR_MAX ((size_t)1)
23 long long llabs(
long long i);
25 int atoi(
const char *s);
26 long atol(
const char *s);
46 int atoi(
const char *nptr);
47 long atol(
const char *nptr);
48 long long atoll(
const char *nptr);
50 long strtol(
const char *__restrict__ nptr,
char **__restrict endptr,
int base);
51 long long strtoll(
const char *__restrict__ nptr,
char **__restrict endptr,
53 unsigned long strtoul(
const char *__restrict__ nptr,
char **__restrict endptr,
55 unsigned long long strtoull(
const char *__restrict__ nptr,
56 char **__restrict endptr,
int base);
59 signed char _strtosc(
const char *__restrict__ nptr,
char **__restrict endptr,
61 unsigned char _strtouc(
const char *__restrict__ nptr,
char **__restrict endptr,
63 int _strtoi(
const char *__restrict__ nptr,
char **__restrict endptr,
int base);
64 unsigned int _strtoui(
const char *__restrict__ nptr,
char **__restrict endptr,
68 void srand(
unsigned seed);
128 void free(
void *ptr);
149 size_t __heap_limit();
154 void __set_heap_limit(
size_t limit);
158 size_t __heap_bytes_used();
163 size_t __heap_bytes_free();
167 #define heap_limit __heap_limit
168 #define set_heap_limit __set_heap_limit
169 #define heap_bytes_used __heap_bytes_used
170 #define heap_bytes_free __heap_bytes_free
172 #endif // _MOS_SOURCE
176 _Noreturn
void abort(
void);
177 int atexit(
void (*func)(
void));
179 _Noreturn
void exit(
int status);
180 __attribute__((leaf)) _Noreturn
void _Exit(
int status);
181 char *
getenv(
const char *name);
183 int system(
const char *
string);
187 void *
bsearch(
const void *key,
const void *base,
size_t nmemb,
size_t size,
188 int (*compar)(
const void *,
const void *));
189 void qsort(
void *base,
size_t nmemb,
size_t size,
190 int (*compar)(
const void *,
const void *));
196 #endif // not _STDLIB_H_
long long atoll(const char *nptr)
int rem
Definition: stdlib.h:30
_Noreturn void exit(int status)
long long rem
Definition: stdlib.h:42
void * bsearch(const void *key, const void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
long long llabs(long long i)
_Noreturn void abort(void)
unsigned long strtoul(const char *__restrict__ nptr, char **__restrict endptr, int base)
long long strtoll(const char *__restrict__ nptr, char **__restrict endptr, int base)
long strtol(const char *__restrict__ nptr, char **__restrict endptr, int base)
div_t div(int numer, int denom)
int system(const char *string)
void * malloc(size_t size)
lldiv_t lldiv(long long numer, long long denom)
long long quot
Definition: stdlib.h:41
_Noreturn void quick_exit(int status)
void srand(unsigned seed)
void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
int _strtoi(const char *__restrict__ nptr, char **__restrict endptr, int base)
int atexit(void(*func)(void))
int at_quick_exit(void(*func)(void))
unsigned size
Definition: neslib.h:185
void * aligned_alloc(size_t alignment, size_t size)
signed char _strtosc(const char *__restrict__ nptr, char **__restrict endptr, int base)
long quot
Definition: stdlib.h:35
unsigned long long strtoull(const char *__restrict__ nptr, char **__restrict endptr, int base)
void * calloc(size_t nmemb, size_t size)
unsigned char _strtouc(const char *__restrict__ nptr, char **__restrict endptr, int base)
long rem
Definition: stdlib.h:36
ldiv_t ldiv(long numer, long denom)
void * realloc(void *ptr, size_t size)
unsigned int _strtoui(const char *__restrict__ nptr, char **__restrict endptr, int base)
char * getenv(const char *name)
int quot
Definition: stdlib.h:29