术语“libc”是吗?相当于“C标准库”?
我有时听到人们交替使用术语“libc”和“C 标准库”。据我所知,“libc”是许多流行的 C 标准库实现的名称(或部分名称)。我的猜测是,由于这些实现的广泛使用,人们开始将 C 标准库一般称为“libc”,尽管它不是官方名称。
将 C 标准库称为“libc”是否正确?
I sometimes hear people using the terms "libc" and "C standard library" interchangeably. I understand that "libc" is the name (or part of the names) of many popular C standard library implementations. My guess is that because of the widespread use of these implementations, people started referring to the C standard library in general as "libc" although it is not an official name.
Is it correct to refer to the C standard library as "libc"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是正确的。 “libc”是 C 标准库的一些实现的名称。
作为未命名为“libc”的 C 标准库实现的示例,Microsoft C 标准库实现是 “C 运行时库”, 通常称为“CRT”。
C 标准库没有命名为“libc”,因此使用该术语来泛指它(而不是特定的实现)是不正确的。也就是说,在大多数情况下,如果您确实使用术语“libc”来指代 C 标准库,您仍然可能被理解。
This is correct. "libc" is the name of some implementations of the C Standard Library.
As an example of a C Standard Library implementation that is not named "libc," the Microsoft C Standard Library implementation is a part of the "C Run-Time Libraries," usually referred to as the "CRT."
The C Standard Library is not named "libc," so using that term to refer to it generically (and not to a particular implementation) would be incorrect. That said, in most contexts, if you did use the term "libc" to refer to the C Standard Library, you are still likely to be understood.
“libc”确实是实现的名称。它通常包含不属于 C 标准的函数,并且可能不包含属于 C 标准的函数。 (后者的常见情况是将标准 C 数学函数拆分为单独的“libm”。)
"libc" is indeed the name of the implementation. It often includes functions that are not part of the C standard, and might not include functions that are part of the C standard. (A common case of the latter is the Standard C math functions being split into a separate "libm".)
'libc' 指的是 C 标准库。然而,libc 有几种实现:
'libc' refers to the C standard library. However, the libc has several implementations :
LibC (http://www.gnu.org/s/libc/) 是 C 库标准 (http://en.wikipedia.org/wiki/C_standard_library#ISO_Standard) 的一种特定实现。
LibC (http://www.gnu.org/s/libc/) is one particular implementation of the C library standard (http://en.wikipedia.org/wiki/C_standard_library#ISO_Standard).