library

C library

C Language Library
The C++ library includes the same definitions as the C language library organized in the same structure of header files, with the following differences:
  • Each header file has the same name as the C language version but with a "c" prefix and no extension. For example, the C++ equivalent for the C language header file <stdlib.h> is <cstdlib>.
  • Every element of the library is defined within the std namespace.
Nevertheless, for compatibility with C, the traditional header names name.h (like stdlib.h) are also provided with the same definitions within the global namespace. In the examples provided in this reference, this version is used so that the examples are fully C-compatible, although its use is deprecated in C++.

The are also certain specific changes in the C++ implementation:
  • wchar_t, char16_t, char32_t and bool are fundamental types in C++ and therefore are not defined in the corresponding header where they appear in C. The same applies to several macros in the header <iso646.h>, which are keywords in C++.
  • The following functions have changes in their declarations related to the constness of their parameters: strchr, strpbrk, strrchr, strstr, memchr.
  • The functions atexit, exit and abort, defined in <cstdlib> have additions to their behavior in C++.
  • Overloaded versions of some functions are provided with additional types as parameters and the same semantics, like float and long double versions of the functions in the cmath header file, or long versions for abs and div.

Note on versions

C++98 includes the C library as described by the 1990 ISO C standard and its amendment #1 (ISO/IEC 9899:1990 and ISO/IEC 9899:1990/DAM 1).

C++11 includes the C library as described by the 1999 ISO C standard and its Technical Corrigenda 1, 2 and 3 (ISO/IEC 9899:1999 and ISO/IEC 9899:1999/Cor.1,2,3), plus <cuchar> (as by ISO/IEC 19769:2004).

Other introductions by the 2011 ISO C standard are not compatible with C++.

Headers

Amendment 1 to ISO-C 90 added two additional headers: <cwchar> and <cwctype>.
<ins id="pwjBlLZ"><video id="pwjBlLZ"></video></ins>
<ins id="pwjBlLZ"><span id="pwjBlLZ"><cite id="pwjBlLZ"></cite></span></ins><ins id="pwjBlLZ"><span id="pwjBlLZ"><cite id="pwjBlLZ"></cite></span></ins>
<del id="pwjBlLZ"></del>
<ins id="pwjBlLZ"><span id="pwjBlLZ"><cite id="pwjBlLZ"></cite></span></ins>
<ins id="pwjBlLZ"></ins><ins id="pwjBlLZ"><span id="pwjBlLZ"><cite id="pwjBlLZ"></cite></span></ins>
<ins id="pwjBlLZ"></ins>
<ins id="pwjBlLZ"></ins>
<var id="pwjBlLZ"></var>
<ins id="pwjBlLZ"><video id="pwjBlLZ"></video></ins><ins id="pwjBlLZ"><span id="pwjBlLZ"></span></ins><var id="pwjBlLZ"><span id="pwjBlLZ"><thead id="pwjBlLZ"></thead></span></var><ins id="pwjBlLZ"></ins>
<menuitem id="pwjBlLZ"><video id="pwjBlLZ"><thead id="pwjBlLZ"></thead></video></menuitem>
<cite id="pwjBlLZ"></cite>
<cite id="pwjBlLZ"><video id="pwjBlLZ"></video></cite>
<var id="pwjBlLZ"><video id="pwjBlLZ"><thead id="pwjBlLZ"></thead></video></var>
<ins id="pwjBlLZ"><span id="pwjBlLZ"><cite id="pwjBlLZ"></cite></span></ins><cite id="pwjBlLZ"></cite>
<var id="pwjBlLZ"><span id="pwjBlLZ"></span></var>
<ins id="pwjBlLZ"></ins><cite id="pwjBlLZ"><video id="pwjBlLZ"></video></cite><thead id="pwjBlLZ"><strike id="pwjBlLZ"><listing id="pwjBlLZ"></listing></strike></thead><cite id="pwjBlLZ"></cite><ins id="pwjBlLZ"><span id="pwjBlLZ"></span></ins>
<ins id="pwjBlLZ"></ins><ins id="pwjBlLZ"></ins>
<ins id="pwjBlLZ"></ins><ins id="pwjBlLZ"></ins>
<ins id="pwjBlLZ"><span id="pwjBlLZ"></span></ins><var id="pwjBlLZ"><span id="pwjBlLZ"></span></var>
<var id="pwjBlLZ"></var><var id="pwjBlLZ"></var><ins id="pwjBlLZ"></ins>
<var id="pwjBlLZ"><noframes id="pwjBlLZ"><menuitem id="pwjBlLZ"></menuitem>
<cite id="pwjBlLZ"><span id="pwjBlLZ"></span></cite><cite id="pwjBlLZ"><span id="pwjBlLZ"><var id="pwjBlLZ"></var></span></cite>
<ins id="pwjBlLZ"><span id="pwjBlLZ"></span></ins>
<ins id="pwjBlLZ"></ins>
<menuitem id="pwjBlLZ"><video id="pwjBlLZ"><thead id="pwjBlLZ"></thead></video></menuitem>
<menuitem id="pwjBlLZ"></menuitem>
  • 7133341522 2018-02-18
  • 5751021521 2018-02-18
  • 3975521520 2018-02-18
  • 4627271519 2018-02-18
  • 9487661518 2018-02-18
  • 3992831517 2018-02-18
  • 9809031516 2018-02-18
  • 865771515 2018-02-18
  • 452471514 2018-02-18
  • 5299351513 2018-02-18
  • 3036511512 2018-02-18
  • 4224301511 2018-02-18
  • 6975481510 2018-02-18
  • 8259761509 2018-02-18
  • 7007851508 2018-02-18
  • 7796301507 2018-02-18
  • 567811506 2018-02-18
  • 2107511505 2018-02-18
  • 8923811504 2018-02-17
  • 6039601503 2018-02-17