4 * Definitions for common types, variables, and functions.
16 #define __need_wchar_t
20 #define NULL ((void*)0)
23 #define EXIT_FAILURE 1
24 #define EXIT_SUCCESS 0
26 _VOID
_EXFUN(qsort
,(_PTR __base
, size_t __nmemb
, size_t __size
, int(*_compar
)(const _PTR
, const _PTR
)));
29 void *calloc (size_t nmemb
, size_t size
);
31 void *realloc(void *, size_t);
33 #define RAND_MAX INT_MAX
35 void srand(unsigned int seed
);
40 #define ABS(a) ({typeof (a) ___a = (a); ___a < 0 ? -___a: ___a; })
42 #define ABS(a) (((a) < 0) ? -(a) : (a))
46 #define abs(x) (ABS(x))
47 #define labs(x) abs(x)
50 void exit(int status
);
53 int atoi (const char *str
);
58 #endif /* _STDLIB_H_ */