다음을 통해 공유


<cstdlib>

Defines the macros traditionally defined in the Standard C library header <stdlib.h>.

#if <TRADITIONAL C HEADERS>
   #include <stdlib.h>
namespace std {
   using ::abort; 
   using ::abs; 
   using ::atexit;
   using ::atof; 
   using ::atoi; 
   using ::atol;
   using ::bsearch; 
   using ::calloc; 
   using ::div;
   using ::div_t; 
   using ::exit; 
   using ::free; 
   using ::getenv;
   using ::labs; 
   using ::ldiv; 
   using ::ldiv_t;
   using ::malloc;
   using ::mblen; 
   using ::mbstowcs; 
   using ::mbtowc;
   using ::qsort; 
   using ::rand; 
   using ::realloc;
   using ::size_t; 
   using ::srand; 
   using ::strtod; 
   using ::strtol;
   using ::strtoul; 
   using ::system;
   using ::wcstombs; 
   using ::wctomb;
  }
#endif

Remarks

Including this header also ensures that the names declared with external linkage in the Standard C library header are declared in the std namespace. In this implementation, the names may or may not also be declared in the global namespace, depending on the specific translation environment.

See Also

Reference

Standard C++ Library Overview

Thread Safety in the Standard C++ Library

Other Resources

Header Files