ifndef _ STDLIB_ H_ define _ STDLIB_ H_ include include !defined ANSI_ SOURCE) endif!defined ANSI_ SOURCE) ifndef _ BSD_ CT_ RUNE_ T_ DEFINED_ define _ BSD_ CT_ RUNE_ T_ DEFINED_ typedef _ BSD_ CT_ RUNE_ T_ ct_rune_t; endif ifndef _ BSD_ RUNE_ T_ DEFINED_ define _ BSD_ RUNE_ T_ DEFINED_ typedef _ BSD_ RUNE_ T_ rune_t; endif endif ifndef _cplusplus ifndef _ BSD_ WCHAR_ T_ DEFINED_ define _ BSD_ WCHAR_ T_ DEFINED_ ifdef _ WCHAR_ TYPE_ typedef _ WCHAR_ TYPE_ wchar_t; else typedef _ BSD_ WCHAR_ T_ wchar_t; endif endif endif ifndef _ BSD_ WINT_ T_ DEFINED_ define _ BSD_ WINT_ T_ DEFINED_ typedef _ BSD_ WINT_ T_ wint_t; endif typedef struct int quot; int rem; div_t; typedef struct long quot; long rem; ldiv_t; ifndef NULL ifdef _ GNUG_ define NULL _null else ifndef _cplusplus define NULL (void 0) else define NULL 0 endif endif endif define EXIT_ FAILURE 1 define EXIT_ SUCCESS 0 define RAND_ MAX 0x7fffffff extern int _mb_cur_max; define MB_ CUR_ MAX _mb_cur_max include _ BEGIN_ DECLS void abort(void) _dead2; int abs(int) _pure2; int atexit(void void double atof(const char int atoi(const char long atol(const char void *bsearch(const void const void size_t, size_t, int const void const void void *calloc(size_t, size_t div_t div(int, int) _pure2; void exit(int) _dead2; void free(void char *getenv(const char long labs(long) _pure2; ldiv_t ldiv(long, long) _pure2; void *malloc(size_t int mblen(const char size_t size_t mbstowcs(wchar_t * _restrict, const char * _restrict, size_t int mbtowc(wchar_t * _restrict, const char * _restrict, size_t void qsort(void size_t, size_t, int const void const void int rand(void void *realloc(void size_t void.
The stdlib.h header defines four variable types, several macros, and various functions for performing general functions. Library Variables Following are the variable types defined in the header stdlib.h: S. N. Variable 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, 186 _compar_fn_t _compar 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 312 extern size_t _malloc_margin; 317 extern char malloc_heap_start; 322 extern char malloc_heap_end; 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.