// -*- C++ -*-
#ifndef _EZCXX_CSTDLIB
#define _EZCXX_CSTDLIB

#include <stdlib.h>
#include <__abs_overloads>

#pragma clang system_header

namespace std {
using ::calloc;
using ::malloc;
using ::realloc;
using ::free;

using ::atof;
using ::atoi;
using ::atol;
using ::atoll;
using ::strtof;
using ::strtod;
using ::strtold;
using ::strtol;
using ::strtoll;
using ::strtoul;
using ::strtoull;

using ::srand;
using ::rand;

using ::bsearch;
using ::qsort;

using ::abort;
using ::atexit;
using ::on_exit;
using ::exit;
using ::at_quick_exit;
using ::quick_exit;
using ::_Exit;

using ::labs;
using ::llabs;

using ::div;
using ::ldiv;
using ::lldiv;
inline constexpr ldiv_t div(long __x, long __y) { return ldiv(__x, __y); }
inline constexpr lldiv_t div(long long __x, long long __y) { return lldiv(__x, __y); }
#ifdef __SIZEOF_INT48__
using ::i48div;
inline i48div_t div(signed __int48 __x, signed __int48 __y) { return i48div(__x, __y); }
#endif // __SIZEOF_INT48__

} // namespace std

#endif // _EZCXX_CSTDLIB
