In most cases, there is no reason to test for access to functions that have been part of ANSI/ISO C since the 1989 version of the standard came out, or for availability of the standard C headers.
绝大部分情况下,没有理由去测试是否有权使用自 1989版本标准出现以后的ANSI/ISOC 中的函数或者标准的 C 头文件是否可用。
In standard c, the effect of this is to forbid the use of the address of a thread local variable as an initializer for an object or pointer.
在标准c中,这种作法的效果是禁止将线程本地变量的地址用作对象或指针的初始值设定项。
Similarly, the CDT leverages and integrates with standard C/C++ tools, such as g++, make, and GDB.
同样地,CDT 将利用标准的C/C++工具并与之集成,例如 g++、make和GDB。
The standard C library (and thus, every UNIX program) defined three standard streams: input, output, and error.
标准C库(因而,每个UNIX程序)定义了三种标准流:输入、输出和错误。
Using the standard C string functions or your favorite string library, compare the common name and the host name.
使用标准的C字符串函数或您习惯使用的字符串库对通用名和主机名进行比较。
The Standard C library provides a set of functions, listed in Table 4.1, that operate on C-style strings.
表4-1列出了C 语言标准库提供的一系列处理C 风格字符串的库函数。
The first small library is uClibc, which is a minimized version of the standard C library for space-constrained systems.
第一个较小的库是uClibc,这是为对空间要求非常严格的系统准备的一个标准C 库。
However, if you need the standard C library (for your custom binaries), there are other options beyond the massive glibc.
然而,如果我们需要标准的C库(我们自己定制的二进制可能需要这个库),除了巨大的glibc 之外,我们还有其他选择。
The good news is, these days many vendors have taken the initiative to provide reentrant versions of the standard C library.
近来很多提供商已经开始提供标准c程序库的可重入版本,这是一个好消息。
The lack of exceptions from the C language and the rudimentary error mechanisms from the standard C library certainly contribute to this.
缺乏C语言的异常和标准 C库的基本错误机制确实会导致出现此种情况。
Standard C allows for the initialization of an object or variable with an expression involving a reference to itself, but only for objects of nonstatic extent.
标准C允许使用需要引用自身的表达式初始化对象或变量,但只适用于非静态作用域的对象。
Now we just need a program to convert our macro into standard C. For this simple example, Perl is used because it can evaluate user code in a string, and its syntax is largely C-like.
现在我们只需要一个程序将这个宏转换成标准的C 语言就可以了。对于这个简单的例子来说,我们将使用Perl 来实现这个程序,因为它可以对字符串中的用户代码进行评测,其语法也与 C 语言非常类似。
One severe limitation of the standard C++ reuse model is that if I wanted to sell my fancy database object, I would have to distribute my complete and valuable know-how in form of the source code.
C++重用模式里最严重的限制是,如果我想销售做好的数据库组件,我不得不分发我完整的且最有价值的源代码。
Then, we'll discuss two examples of the static approach (standard C strncpy/strncat and OpenBSD's strlcpy/strlcat), followed by two examples of the dynamic approach (SafeStr and C++'s std::string).
然后,我们将讨论静态方法的两个例子(标准Cstrncpy/strncat和OpenBSD 的strlcpy/strlcat ),接着讨论动态方法的两个例子(SafeStr 和 C++ 的std::string )。
Then, we'll discuss two examples of the static approach (standard C strncpy/strncat and OpenBSD's strlcpy/strlcat), followed by two examples of the dynamic approach (SafeStr and C++'s std::string).
然后,我们将讨论静态方法的两个例子(标准Cstrncpy/strncat和OpenBSD 的strlcpy/strlcat ),接着讨论动态方法的两个例子(SafeStr 和 C++ 的std::string )。
应用推荐