`
- 浏览:
1017490 次
-
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 is a fundamental type in C++ and therefore does not appear as a defined type in the corresponding header files where it appears in C. The same applies to several macros introduced by amendment 1 to ISO C in
the header file <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++ includes the C library as described by the 1990 ISO standard and its amendment #1 (ISO/IEC 9899:1990 and ISO/IEC 9899:1990/DAM 1). Some introductions made in the 1999 ISO standard are not compatible with the C++ standard.
Headers
cassert (assert.h)
C Diagnostics Library (header)
cctype (ctype.h)
Character handling functions (header)
cerrno (errno.h)
C Errors (header)
cfloat (float.h)
Characteristics of floating-point 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)
cstddef (stddef.h)
C Standard definitions (header)
cstdio (stdio.h)
C library to perform Input/Output operations
(header)
cstdlib (stdlib.h)
C Standard General Utilities Library
(header)
cstring (string.h)
C Strings (header)
ctime
C Time Library (header)
Amendment 1 to ISO-C 90 added two additional headers:
cwchar and cwctype.
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
c语言标准库,包含c语言标准库中的函数的介绍
C标准库源代码,能提高对C的理解,不错的哦 下载文件列表 Pack : clibsource.rar C 标准库源代码\ABORT.C C标准库源代码\ABS.C C标准库源代码\ACCESS.C C标准库源代码\ADJUSTFD.C C标准库源代码\ALGRITHM C标准库源...
c语言标准库源码注释
C标准库源代码,很全很好的源代码,感兴趣的看看吧~
《C标准库》是由世界级C语言专家编写的C标准库经典著作。英文版已经重印十多次,影响了几代程序员。《C标准库》结合C标准的相关部分,精辟地讲述了每一个库函数的使用方法和实现细节,这正是一个真正的C程序员所必须...
C语言标准库手册,C语言标准库手册,C语言标准库手册。
丰富、全面、简洁的C语言标准库参考手册, 是C语言开发者的必备资料。
C语言标准库源代码(学习C语言必备) C语言,标准库源代码,C源代码
c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c标准库c...
C语言标准库函数源码大全,相当全的库函数源码,各种源码库函数,是学习C语言,精通C语言的资料工具,望能帮助大家学习c语言.
C语言标准库源码
C标准库高清pdf版
本书集中讨论了C标准库,全面介绍了ANSI/ISO C语言标准的所有库函数。书中通过引用ISO C标准的相关部分,详细讲解了每一个库函数的使用方法,并通过示例描述了其实现细节,且给出了实现和测试这些函数的完整代码。...
本书集中讨论了C标准库,全面介绍了ANSI/ISO C语言标准的所有库函数。书中通过引用ISO C标准的相关部分,详细讲解了每一个库函数的使用方法,并通过示例描述了其实现细节,且给出了实现和测试这些函数的完整代码。...
c语言库函数的实现,对于深入理解c和良好的编程风格的养成大有裨益
c语言标准库,包括C语言的一些常用函数如printf,for,while和文件操作符read,get,write等函数的使用
c标准库源代码,包括是strlen(),atol()等等函数源码
包括:中文版+英文版的C标准库、完整版c标准库源码、c/C++ 标准库.chm 速查手册。
本书是由世界级C语言专家编写的C标准库经典著作。英文版已经重印十多次,影响了几代程序员。 本书结合C标准的相关部分,精辟地讲述了每一个库函数的使用方法和实现细节,这正是一个真正的C程序员所必须掌握的。更...