Facebook Twitter

C 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.

C Library

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. Note on versions. Reference. Search: Reference Not logged in Reference Standard C++ Library reference C Library The elements of the C language library are also included as a subset of the C++ Standard library.

<cassert> (assert.h) C Diagnostics Library (header) <cctype> (ctype.h) Character handling functions (header) <cerrno> (errno.h) C Errors (header) <cfenv> (fenv.h) Floating-point environment (header) <cfloat> (float.h) Characteristics of floating-point types (header) <cinttypes> (inttypes.h) C integer types (header) <ciso646> (iso646.h) ISO 646 Alternative operator spellings (header) <climits> (limits.h) Sizes of integral types (header) <clocale> (locale.h) C localization library (header) <cmath> (math.h) C numerics library (header) <csetjmp> (setjmp.h) Non local jumps (header) <csignal> (signal.h) C library to handle signals (header) <cstdarg> (stdarg.h) Variable arguments handling (header) <cstdbool> (stdbool.h) Boolean type (header) <cstddef> (stddef.h) C Standard definitions (header) <cstdint> (stdint.h) Integer types (header) Containers.

C programming.com - Learn C and C++ Programming.