47 #define __need_wchar_t
51 #define __ptr_t void *
86 #ifndef __ATTR_CONST__
87 # define __ATTR_CONST__ __attribute__((__const__))
90 #ifndef __ATTR_MALLOC__
91 # define __ATTR_MALLOC__ __attribute__((__malloc__))
94 #ifndef __ATTR_NORETURN__
95 # define __ATTR_NORETURN__ __attribute__((__noreturn__))
99 # define __ATTR_PURE__ __attribute__((__pure__))
102 #ifndef __ATTR_GNU_INLINE__
103 # ifdef __GNUC_STDC_INLINE__
104 # define __ATTR_GNU_INLINE__ __attribute__((__gnu_inline__))
106 # define __ATTR_GNU_INLINE__
116 extern void abort(
void) __ATTR_NORETURN__;
121 extern
int abs(
int __i) __ATTR_CONST__;
123 #define abs(__i) __builtin_abs(__i)
130 extern long labs(
long __i) __ATTR_CONST__;
132 #define labs(__i) __builtin_labs(__i)
153 extern void *
bsearch(
const void *__key,
const void *__base,
size_t __nmemb,
154 size_t __size,
int (*__compar)(
const void *,
const void *));
162 extern div_t div(
int __num,
int __denom) __asm__(
"__divmodhi4") __ATTR_CONST__;
168 extern
ldiv_t ldiv(
long __num,
long __denom) __asm__("__divmodsi4") __ATTR_CONST__;
185 extern
void qsort(
void *__base,
size_t __nmemb,
size_t __size,
218 extern
long strtol(const
char *__nptr,
char **__endptr,
int __base);
252 extern
unsigned long strtoul(const
char *__nptr,
char **__endptr,
int __base);
264 extern
long atol(const
char *__s) __ATTR_PURE__;
276 extern
int atoi(const
char *__s) __ATTR_PURE__;
288 extern
void exit(
int __status) __ATTR_NORETURN__;
300 extern
void *
malloc(
size_t __size) __ATTR_MALLOC__;
307 extern
void free(
void *__ptr);
329 extern
void *
calloc(
size_t __nele,
size_t __size) __ATTR_MALLOC__;
348 extern
void *
realloc(
void *__ptr,
size_t __size) __ATTR_MALLOC__;
350 extern
double strtod(const
char *__nptr,
char **__endptr);
361 extern
double atof(const
char *__nptr);
364 #define RAND_MAX 0x7FFF
383 extern int rand(
void);
387 extern void srand(
unsigned int __seed);
394 extern int rand_r(
unsigned long *__ctx);
426 extern char *
itoa(
int val,
char *s,
int radix);
428 extern __inline__ __ATTR_GNU_INLINE__
429 char *
itoa (
int __val,
char *__s,
int __radix)
431 if (!__builtin_constant_p (__radix)) {
432 extern char *__itoa (
int,
char *,
int);
433 return __itoa (__val, __s, __radix);
434 }
else if (__radix < 2 || __radix > 36) {
438 extern char *__itoa_ncheck (
int,
char *,
unsigned char);
439 return __itoa_ncheck (__val, __s, __radix);
471 extern char *
ltoa(
long val,
char *s,
int radix);
473 extern __inline__ __ATTR_GNU_INLINE__
474 char *
ltoa (
long __val,
char *__s,
int __radix)
476 if (!__builtin_constant_p (__radix)) {
477 extern char *__ltoa (
long,
char *,
int);
478 return __ltoa (__val, __s, __radix);
479 }
else if (__radix < 2 || __radix > 36) {
483 extern char *__ltoa_ncheck (
long,
char *,
unsigned char);
484 return __ltoa_ncheck (__val, __s, __radix);
514 extern char *
utoa(
unsigned int val,
char *s,
int radix);
516 extern __inline__ __ATTR_GNU_INLINE__
517 char *
utoa (
unsigned int __val,
char *__s,
int __radix)
519 if (!__builtin_constant_p (__radix)) {
520 extern char *__utoa (
unsigned int,
char *,
int);
521 return __utoa (__val, __s, __radix);
522 }
else if (__radix < 2 || __radix > 36) {
526 extern char *__utoa_ncheck (
unsigned int,
char *,
unsigned char);
527 return __utoa_ncheck (__val, __s, __radix);
556 extern char *
ultoa(
unsigned long val,
char *s,
int radix);
558 extern __inline__ __ATTR_GNU_INLINE__
559 char *
ultoa (
unsigned long __val,
char *__s,
int __radix)
561 if (!__builtin_constant_p (__radix)) {
562 extern char *__ultoa (
unsigned long,
char *,
int);
563 return __ultoa (__val, __s, __radix);
564 }
else if (__radix < 2 || __radix > 36) {
568 extern char *__ultoa_ncheck (
unsigned long,
char *,
unsigned char);
569 return __ultoa_ncheck (__val, __s, __radix);
576 #define RANDOM_MAX 0x7FFFFFFF
595 extern void srandom(
unsigned long __seed);
603 extern long random_r(
unsigned long *__ctx);
617 #define DTOSTR_ALWAYS_SIGN 0x01
620 #define DTOSTR_PLUS_SIGN 0x02
623 #define DTOSTR_UPPERCASE 0x04
625 #ifndef __ASSEMBLER__
649 extern char *
dtostre(
double __val,
char *__s,
unsigned char __prec,
650 unsigned char __flags);
666 extern char *
dtostrf(
double __val,
signed char __width,
667 unsigned char __prec,
char *__s);
673 #define EXIT_SUCCESS 0
679 #define EXIT_FAILURE 1
685 extern int atexit(
void (*)(
void));
686 extern int system (
const char *);
687 extern char *getenv (
const char *);
int rand(void)
Definition: rand.c:91
div_t div(int __num, int __denom) __asm__("__divmodhi4")
int(* __compar_fn_t)(const void *, const void *)
Definition: stdlib.h:82
double atof(const char *__nptr)
char * itoa(int val, char *s, int radix)
Convert an integer to a string.
char * __malloc_heap_end
Definition: malloc.c:61
void exit(int __status) __ATTR_NORETURN__
long quot
Definition: stdlib.h:77
void qsort(void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar)
void free(void *__ptr)
Definition: malloc.c:190
void * malloc(size_t __size) __ATTR_MALLOC__
Definition: malloc.c:68
void * bsearch(const void *__key, const void *__base, size_t __nmemb, size_t __size, int(*__compar)(const void *, const void *))
void srand(unsigned int __seed)
Definition: rand.c:98
void * calloc(size_t __nele, size_t __size) __ATTR_MALLOC__
Definition: calloc.c:39
char * ultoa(unsigned long val, char *s, int radix)
Convert an unsigned long integer to a string.
long rem
Definition: stdlib.h:78
char * __malloc_heap_start
Definition: malloc.c:60
char * dtostre(double __val, char *__s, unsigned char __prec, unsigned char __flags)
Definition: dtostre.c:38
int atoi(const char *__s) __ATTR_PURE__
Definition: atoi.c:34
int abs(int __i)
Definition: abs.c:34
unsigned long strtoul(const char *__nptr, char **__endptr, int __base)
size_t __malloc_margin
Definition: malloc.c:59
int quot
Definition: stdlib.h:71
long random(void)
Definition: random.c:81
char * utoa(unsigned int val, char *s, int radix)
Convert an unsigned integer to a string.
char * dtostrf(double __val, signed char __width, unsigned char __prec, char *__s)
Definition: dtostrf.c:50
char * ltoa(long val, char *s, int radix)
Convert a long integer to a string.
double strtod(const char *__nptr, char **__endptr)
Definition: strtod.c:89
void srandom(unsigned long __seed)
Definition: random.c:88
int rem
Definition: stdlib.h:72
long labs(long __i)
Definition: labs.c:34
long strtol(const char *__nptr, char **__endptr, int __base)
void * realloc(void *__ptr, size_t __size) __ATTR_MALLOC__
Definition: realloc.c:44
long atol(const char *__s) __ATTR_PURE__
Definition: atol.c:34
ldiv_t ldiv(long __num, long __denom) __asm__("__divmodsi4")
void abort(void) __ATTR_NORETURN__
Definition: abort.c:34
long random_r(unsigned long *__ctx)
Definition: random.c:71
int rand_r(unsigned long *__ctx)
Definition: rand.c:81