术语“libc”是吗?相当于“C标准库”?

发布于 2024-10-29 16:32:18 字数 150 浏览 3 评论 0原文

我有时听到人们交替使用术语“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

月棠 2024-11-05 16:32:18

我一直认为“libc”恰好是许多流行的 C 标准库实现的名称(或部分名称)。

这是正确的。 “libc”是 C 标准库的一些实现的名称。

作为未命名为“libc”的 C 标准库实现的示例,Microsoft C 标准库实现是 “C 运行时库”, 通常称为“CRT”。

将 C 标准库称为“libc”是否正确?

C 标准库没有命名为“libc”,因此使用该术语来泛指它(而不是特定的实现)是不正确的。也就是说,在大多数情况下,如果您确实使用术语“libc”来指代 C 标准库,您仍然可能被理解。

I always thought that "libc" just happens to be the name (or part of the names) of many popular C standard library implementations.

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

Is it correct to refer to the C standard library as "libc"?

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.

我早已燃尽 2024-11-05 16:32:18

“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".)

一个人的夜不怕黑 2024-11-05 16:32:18

'libc' 指的是 C 标准库。然而,libc 有几种实现:

  • glibc:为 GNU 项目编写的 libc 实现
  • klibc :libc 的简约子集实现
  • ...

'libc' refers to the C standard library. However, the libc has several implementations :

  • glibc : an implementation of libc written for the GNU Project
  • klibc : a minimalistic subset implementation of the libc
  • ...
她比我温柔 2024-11-05 16:32:18

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文