88# define __ATTR_CONST__ __attribute__((__const__))
91#ifndef __ATTR_MALLOC__
92# define __ATTR_MALLOC__ __attribute__((__malloc__))
95#ifndef __ATTR_NORETURN__
96# define __ATTR_NORETURN__ __attribute__((__noreturn__))
100# define __ATTR_PURE__ __attribute__((__pure__))
103#ifndef __ATTR_GNU_INLINE__
104# ifdef __GNUC_STDC_INLINE__
105# define __ATTR_GNU_INLINE__ __attribute__((__gnu_inline__))
107# define __ATTR_GNU_INLINE__
111#ifndef __ATTR_ALWAYS_INLINE__
112#define __ATTR_ALWAYS_INLINE__ __inline__ __attribute__((__always_inline__))
121extern void abort(
void) __ATTR_NORETURN__;
124static __ATTR_ALWAYS_INLINE__
127 return __builtin_abs (__i);
133extern int abs(
int __i) __ATTR_CONST__;
136static __ATTR_ALWAYS_INLINE__
139 return __builtin_labs (__i);
146extern long labs(
long __i) __ATTR_CONST__;
166extern void *
bsearch(
const void *__key,
const void *__base,
size_t __nmemb,
167 size_t __size,
int (*__compar)(
const void *,
const void *));
175extern div_t div(
int __num,
int __denom) __asm__(
"__divmodhi4") __ATTR_CONST__;
181extern
ldiv_t ldiv(
long __num,
long __denom) __asm__("__divmodsi4") __ATTR_CONST__;
198extern
void qsort(
void *__base,
size_t __nmemb,
size_t __size,
231extern
long strtol(const
char *__nptr,
char **__endptr,
int __base);
265extern
unsigned long strtoul(const
char *__nptr,
char **__endptr,
int __base);
277extern
long atol(const
char *__s) __ATTR_PURE__;
289extern
int atoi(const
char *__s) __ATTR_PURE__;
301extern
void exit(
int __status) __ATTR_NORETURN__;
313extern
void *malloc(
size_t __size) __ATTR_MALLOC__;
320extern
void free(
void *__ptr);
342extern
void *
calloc(
size_t __nele,
size_t __size) __ATTR_MALLOC__;
361extern
void *realloc(
void *__ptr,
size_t __size) __ATTR_MALLOC__;
363extern
float strtof(const
char *__nptr,
char **__endptr);
369extern
double strtod(const
char *__nptr,
char **__endptr);
376extern
long double strtold(const
char *__nptr,
char **__endptr);
384extern
int atexit(
void (*func)(
void));
394extern
float atoff(const
char *__nptr);
403extern
double atof(const
char *__nptr);
412extern
long double atofl(const
char *__nptr);
415#define RAND_MAX 0x7FFF
434extern int rand(
void);
438extern void srand(
unsigned int __seed);
445extern int rand_r(
unsigned long *__ctx);
477extern char *
itoa(
int val,
char *s,
int radix);
479extern __inline__ __ATTR_GNU_INLINE__
480char *
itoa (
int __val,
char *__s,
int __radix)
482 if (!__builtin_constant_p (__radix)) {
483 extern char *__itoa (
int,
char *,
int);
484 return __itoa (__val, __s, __radix);
485 }
else if (__radix < 2 || __radix > 36) {
489 extern char *__itoa_ncheck (
int,
char *,
unsigned char);
490 return __itoa_ncheck (__val, __s, __radix);
522extern char *
ltoa(
long val,
char *s,
int radix);
524extern __inline__ __ATTR_GNU_INLINE__
525char *
ltoa (
long __val,
char *__s,
int __radix)
527 if (!__builtin_constant_p (__radix))
529 extern char *__ltoa (
long,
char *,
int);
530 return __ltoa (__val, __s, __radix);
532 else if (__radix < 2 || __radix > 36)
539 extern char *__ltoa_ncheck (
long,
char *,
unsigned char);
540 return __ltoa_ncheck (__val, __s, __radix);
570extern char *
utoa(
unsigned int val,
char *s,
int radix);
572extern __inline__ __ATTR_GNU_INLINE__
573char *
utoa (
unsigned int __val,
char *__s,
int __radix)
575 if (!__builtin_constant_p (__radix))
577 extern char *__utoa (
unsigned int,
char *,
int);
578 return __utoa (__val, __s, __radix);
580 else if (__radix < 2 || __radix > 36)
587 extern char *__utoa_ncheck (
unsigned int,
char *,
unsigned char);
588 return __utoa_ncheck (__val, __s, __radix);
617extern char *
ultoa(
unsigned long val,
char *s,
int radix);
619extern __inline__ __ATTR_GNU_INLINE__
620char *
ultoa (
unsigned long __val,
char *__s,
int __radix)
622 if (!__builtin_constant_p (__radix)) {
623 extern char *__ultoa (
unsigned long,
char *,
int);
624 return __ultoa (__val, __s, __radix);
625 }
else if (__radix < 2 || __radix > 36) {
629 extern char *__ultoa_ncheck (
unsigned long,
char *,
unsigned char);
630 return __ultoa_ncheck (__val, __s, __radix);
637#define RANDOM_MAX 0x7FFFFFFF
656extern void srandom(
unsigned long __seed);
664extern long random_r(
unsigned long *__ctx);
673#define DTOSTR_ALWAYS_SIGN 0x01
677#define DTOSTR_PLUS_SIGN 0x02
681#define DTOSTR_UPPERCASE 0x04
708extern char *
ftostre(
float __val,
char *__s,
unsigned char __prec,
709 unsigned char __flags);
716extern char *
dtostre(
double __val,
char *__s,
unsigned char __prec,
717 unsigned char __flags);
725extern char *
ldtostre(
long double __val,
char *__s,
unsigned char __prec,
726 unsigned char __flags);
742extern char *
ftostrf(
float __val,
signed char __width,
743 unsigned char __prec,
char *__s);
750extern char *
dtostrf(
double __val,
signed char __width,
751 unsigned char __prec,
char *__s);
759extern char *
ldtostrf(
long double __val,
signed char __width,
760 unsigned char __prec,
char *__s);
766#define EXIT_SUCCESS 0
772#define EXIT_FAILURE 1
778extern int system (
const char *);
779extern char *getenv (
const char *);
char * ftostre(float __val, char *__s, unsigned char __prec, unsigned char __flags)
Definition: dtostre.c:39
char * ldtostrf(long double __val, signed char __width, unsigned char __prec, char *__s)
char * ltoa(long val, char *s, int radix)
Convert a long integer to a string.
long random(void)
Definition: random.c:81
long atol(const char *__s)
Definition: atol.c:34
long double atofl(const char *__nptr)
int(* __compar_fn_t)(const void *, const void *)
Definition: stdlib.h:83
char * dtostre(double __val, char *__s, unsigned char __prec, unsigned char __flags)
char * __malloc_heap_end
Definition: malloc.c:61
void srandom(unsigned long __seed)
Definition: random.c:88
ldiv_t ldiv(long __num, long __denom) __asm__("__divmodsi4")
double strtod(const char *__nptr, char **__endptr)
long double strtold(const char *__nptr, char **__endptr)
void * calloc(size_t __nele, size_t __size)
Definition: calloc.c:39
int atoi(const char *__s)
Definition: atoi.c:34
double atof(const char *__nptr)
float strtof(const char *__nptr, char **__endptr)
Definition: strtod.c:99
div_t div(int __num, int __denom) __asm__("__divmodhi4")
char * dtostrf(double __val, signed char __width, unsigned char __prec, char *__s)
int atexit(void(*func)(void))
Definition: atexit.c:42
char * ldtostre(long double __val, char *__s, unsigned char __prec, unsigned char __flags)
void abort(void)
Definition: abort.c:34
char * __malloc_heap_start
Definition: malloc.c:60
char * itoa(int val, char *s, int radix)
Convert an integer to a string.
long random_r(unsigned long *__ctx)
Definition: random.c:71
void srand(unsigned int __seed)
Definition: rand.c:98
char * ftostrf(float __val, signed char __width, unsigned char __prec, char *__s)
Definition: dtostrf.c:51
char * ultoa(unsigned long val, char *s, int radix)
Convert an unsigned long integer to a string.
int rand(void)
Definition: rand.c:91
float atoff(const char *__nptr)
char * utoa(unsigned int val, char *s, int radix)
Convert an unsigned integer to a string.
unsigned long strtoul(const char *__nptr, char **__endptr, int __base)
int rand_r(unsigned long *__ctx)
Definition: rand.c:81
void * bsearch(const void *__key, const void *__base, size_t __nmemb, size_t __size, int(*__compar)(const void *, const void *))
Definition: bsearch.c:56
long strtol(const char *__nptr, char **__endptr, int __base)
void qsort(void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar)
size_t __malloc_margin
Definition: malloc.c:59
int quot
Definition: stdlib.h:72
int rem
Definition: stdlib.h:73
long rem
Definition: stdlib.h:79
long quot
Definition: stdlib.h:78