46 #define __need_wchar_t
50 #define __ptr_t void *
84 #ifndef __ATTR_CONST__
85 # define __ATTR_CONST__ __attribute__((__const__))
88 #ifndef __ATTR_MALLOC__
89 # define __ATTR_MALLOC__ __attribute__((__malloc__))
92 #ifndef __ATTR_NORETURN__
93 # define __ATTR_NORETURN__ __attribute__((__noreturn__))
97 # define __ATTR_PURE__ __attribute__((__pure__))
100 #ifndef __ATTR_GNU_INLINE__
101 # ifdef __GNUC_STDC_INLINE__
102 # define __ATTR_GNU_INLINE__ __attribute__((__gnu_inline__))
104 # define __ATTR_GNU_INLINE__
114 extern void abort(
void) __ATTR_NORETURN__;
119 extern
int abs(
int __i) __ATTR_CONST__;
121 #define abs(__i) __builtin_abs(__i)
128 extern long labs(
long __i) __ATTR_CONST__;
130 #define labs(__i) __builtin_labs(__i)
151 extern void *
bsearch(
const void *__key,
const void *__base,
size_t __nmemb,
152 size_t __size,
int (*__compar)(
const void *,
const void *));
160 extern div_t div(
int __num,
int __denom) __asm__(
"__divmodhi4") __ATTR_CONST__;
166 extern
ldiv_t ldiv(
long __num,
long __denom) __asm__("__divmodsi4") __ATTR_CONST__;
183 extern
void qsort(
void *__base,
size_t __nmemb,
size_t __size,
216 extern
long strtol(const
char *__nptr,
char **__endptr,
int __base);
250 extern
unsigned long strtoul(const
char *__nptr,
char **__endptr,
int __base);
262 extern
long atol(const
char *__s) __ATTR_PURE__;
274 extern
int atoi(const
char *__s) __ATTR_PURE__;
286 extern
void exit(
int __status) __ATTR_NORETURN__;
298 extern
void *
malloc(
size_t __size) __ATTR_MALLOC__;
305 extern
void free(
void *__ptr);
327 extern
void *
calloc(
size_t __nele,
size_t __size) __ATTR_MALLOC__;
346 extern
void *
realloc(
void *__ptr,
size_t __size) __ATTR_MALLOC__;
348 extern
double strtod(const
char *__nptr,
char **__endptr);
350 extern
double atof(const
char *__nptr);
353 #define RAND_MAX 0x7FFF
372 extern int rand(
void);
376 extern void srand(
unsigned int __seed);
383 extern int rand_r(
unsigned long *__ctx);
415 extern char *
itoa(
int val,
char *s,
int radix);
417 extern __inline__ __ATTR_GNU_INLINE__
418 char *
itoa (
int __val,
char *__s,
int __radix)
420 if (!__builtin_constant_p (__radix)) {
421 extern char *__itoa (
int,
char *,
int);
422 return __itoa (__val, __s, __radix);
423 }
else if (__radix < 2 || __radix > 36) {
427 extern char *__itoa_ncheck (
int,
char *,
unsigned char);
428 return __itoa_ncheck (__val, __s, __radix);
460 extern char *
ltoa(
long val,
char *s,
int radix);
462 extern __inline__ __ATTR_GNU_INLINE__
463 char *
ltoa (
long __val,
char *__s,
int __radix)
465 if (!__builtin_constant_p (__radix)) {
466 extern char *__ltoa (
long,
char *,
int);
467 return __ltoa (__val, __s, __radix);
468 }
else if (__radix < 2 || __radix > 36) {
472 extern char *__ltoa_ncheck (
long,
char *,
unsigned char);
473 return __ltoa_ncheck (__val, __s, __radix);
503 extern char *
utoa(
unsigned int val,
char *s,
int radix);
505 extern __inline__ __ATTR_GNU_INLINE__
506 char *
utoa (
unsigned int __val,
char *__s,
int __radix)
508 if (!__builtin_constant_p (__radix)) {
509 extern char *__utoa (
unsigned int,
char *,
int);
510 return __utoa (__val, __s, __radix);
511 }
else if (__radix < 2 || __radix > 36) {
515 extern char *__utoa_ncheck (
unsigned int,
char *,
unsigned char);
516 return __utoa_ncheck (__val, __s, __radix);
545 extern char *
ultoa(
unsigned long val,
char *s,
int radix);
547 extern __inline__ __ATTR_GNU_INLINE__
548 char *
ultoa (
unsigned long __val,
char *__s,
int __radix)
550 if (!__builtin_constant_p (__radix)) {
551 extern char *__ultoa (
unsigned long,
char *,
int);
552 return __ultoa (__val, __s, __radix);
553 }
else if (__radix < 2 || __radix > 36) {
557 extern char *__ultoa_ncheck (
unsigned long,
char *,
unsigned char);
558 return __ultoa_ncheck (__val, __s, __radix);
565 #define RANDOM_MAX 0x7FFFFFFF
584 extern void srandom(
unsigned long __seed);
592 extern long random_r(
unsigned long *__ctx);
606 #define DTOSTR_ALWAYS_SIGN 0x01
609 #define DTOSTR_PLUS_SIGN 0x02
612 #define DTOSTR_UPPERCASE 0x04
614 #ifndef __ASSEMBLER__
638 extern char *
dtostre(
double __val,
char *__s,
unsigned char __prec,
639 unsigned char __flags);
655 extern char *
dtostrf(
double __val,
signed char __width,
656 unsigned char __prec,
char *__s);
662 #define EXIT_SUCCESS 0
668 #define EXIT_FAILURE 1
672 extern int atexit(
void (*)(
void));
673 extern int system (
const char *);
674 extern char *getenv (
const char *);
int rand(void)
Definition: rand.c:91
div_t div(int __num, int __denom) __asm__("__divmodhi4")
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:75
int(* __compar_fn_t)(const void *, const void *)
Definition: stdlib.h:80
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:76
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__
Convert a string to an integer.
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:69
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:70
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__
Convert a string to a long integer.
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