有类似官方C文档的东西吗?

发布于 2024-10-03 17:04:29 字数 1539 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(11

青柠芒果 2024-10-10 17:04:29

您可以从 ANSI(和其他精细标准组织)获取 C99 标准 (ISO/IEC 9899:1999) 的 PDF 副本供您私人使用,只需支付少量费用 - 我相信我购买时的价格是 18 美元。拥有它对我来说是无价的。但如果你在公共场合发现副本,那么它就是违禁品。

您可以在 JTC1、SC22、WG14 网站上找到 C (C0x) 标准委员会的最终委员会草案和当前工作文件 开放标准组织。 (我相信,这是联合技术委员会 1、分委会 22、工作组 14)。

还有一本精装书 'The C Standard: Incorporating Technical Corrigendum 1' (还包括基本原理),价格稍微便宜一些,为 85 美元或左右。

关于 C 的最好的书籍之一是第五版的《C:参考手册》。然而,您要求“标准 C 知识的最终官方来源”,而唯一的“官方”此类来源是 C 标准及其勘误。

另请参阅 http://www.coding-guidelines.com/http://c0x.coding-guidelines.com/

You can obtain a PDF copy of the C99 standard (ISO/IEC 9899:1999) from ANSI (and other fine standards organizations) for your private use for a modest fee - I believe it was 18 USD when I bought mine. Having that available is invaluable to me. But if you find a copy in public, then it is contraband.

You can find final committee drafts and current working documents of the C (C0x) Standard Committee at the JTC1, SC22, WG14 web site at the Open Standards Organization. (That's Joint Technical Committee 1, Sub-Committee 22, Working Group 14, I believe).

There is also a hardback book 'The C Standard: Incorporating Technical Corrigendum 1' (also including the Rationale) available for a slightly less modest 85 USD or thereabouts.

One of the best books about C is 'C: A Reference Manual' in its fifth edition. However, you asked for 'ultimate official source of standard C knowledge', and the only 'official' such source is the C standard, plus its corrigenda.

See also the material at http://www.coding-guidelines.com/ and http://c0x.coding-guidelines.com/.

ㄖ落Θ余辉 2024-10-10 17:04:29

有一个在线网站 devdocs

他们有多个组织良好的 API 文档。它是免费且开源的。

对于 c 文档,请单击此链接 http://devdocs.io/c/

There is this online website devdocs

They have multiple API documentations which are well organized. It is free and open-source.

For c doc click this link http://devdocs.io/c/

拥抱影子 2024-10-10 17:04:29

官方 C99 标准可从您的国家标准机构购买;然而,实际上每个人都会阅读包含 1999 年之后的更正/修订的草案,您可以免费下载:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

The official C99 standard is available for purchase from your national standards body; however, in practice everyone reads the draft with post-1999 corrections/amendments included, which you can download for free:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

夕嗳→ 2024-10-10 17:04:29

严格来说,C 标准并不是免费提供的。您需要从 http://www.ansi.org/http://www.iso.org

不过,您可以下载免费草稿版本来自开放标准组织的网站 - 这与官方标准本身一样好或更好。它包含来自 ISO C99 标准的信息以及三个技术勘误表,所有这些都是官方 ISO 文档。

更多信息请参见:http://c-faq.com/ansi/avail.html

Strictly speaking, the C standard is not available for free. You need to purchase an electronic copy from http://www.ansi.org/ or http://www.iso.org.

However, you can download a free draft version from the Open Standards Organization's website - this is as good as or better than the official standard itself. It incorporates information from the ISO C99 standard plus three Technical Corrigenda, all of which are official ISO documents.

More info here: http://c-faq.com/ansi/avail.html

空‖城人不在 2024-10-10 17:04:29

有类似官方C文档的东西吗?

最官方的文档是 ISO 标准,编译器是根据该标准编写的,并且应该能够正确解释。

C99 标准

以下是关于 C99 标准的最新委员会草案,最后更新于 2011 年 4 月 12 日:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf

我会尽力保持最新版本为我可以。

克尼根和Ritchie

我还找到了 K&R 的文本,第二版,在这里: http://www.ime.usp.br/~pf/Kernighan-Ritchie/C-Programming-Ebook.pdf

但是,我会使用 -Wall 标志整理书中的例子,这样你就不会因为文本的年代而误入歧途。

Is there something like the official C documentation?

The most official documentation is the ISO standard, to which compilers are written and are expected to interpret correctly.

C99 Standard

Here's the latest Committee draft on the C99 Standard, last updated April 12, 2011:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf

I'll try to keep it up to date with the latest version as I can.

Kernighan & Ritchie

I also found K&R's text, second edition, here: http://www.ime.usp.br/~pf/Kernighan-Ritchie/C-Programming-Ebook.pdf

However, I'd use the -Wall flag when compiling the examples in the book so that you don't get led too far astray by the age of the text.

ゃ懵逼小萝莉 2024-10-10 17:04:29

您可以参考 GNU C 文档 https://www .gnu.org/software/gnu-c-manual/gnu-c-manual.html

具体而言,本手册旨在记录:

  1. 1989 年 ANSI C 标准,通常称为“C89”
  2. 1999 年 ISO C 标准,通常称为“C99”,因为 C99 是由 GCC 实现的
  3. GNU 对标准 C 扩展的当前状态

You can refer GNU C documentation at https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html

Specifically, this manual aims to document:

  1. The 1989 ANSI C standard, commonly known as “C89”
  2. The 1999 ISO C standard, commonly known as “C99”, to the extent that C99 is implemented by GCC
  3. The current state of GNU extensions to standard C
无所的.畏惧 2024-10-10 17:04:29

C 是 ISO 标准化语言。当前规范是 ISO/IEC 9899:1999 标准,又名 C99。

C is an ISO standardised language. Current specification is ISO/IEC 9899:1999 standard a.k.a. C99.

流心雨 2024-10-10 17:04:29

有多种 C 标准规范。

例如,请参阅 wikipedia 上的 C 历史。

如今,当我们谈论标准 C 时,我们主要指的是 ANSI C 标准

以下是文本形式标准的链接:
http://flash-gordon.me.uk/ansi.c.txt

There're various C standard specifications.

See C's history on wikipedia for example.

When we talk about standard C these days, we mostly refer to the ANSI C Standard.

Here's a link to the standard in textform:
http://flash-gordon.me.uk/ansi.c.txt

愿与i 2024-10-10 17:04:29

如果您想要的是标准库函数的文档,那么 PJ Plauger 的“标准 C 库” http://www.amazon.com/Standard-C-Library-PJ-Plauger/dp/0131315099/ref=sr_1_1?s=books&ie=UTF8&qid=1290273108&sr=1-1 是最好的参考。它对标准的原因和方式进行了相当广泛的注释和评论。

If what you want is the documentation for the standard library functions, then P.J. Plauger's "The Standard C Library" http://www.amazon.com/Standard-C-Library-P-J-Plauger/dp/0131315099/ref=sr_1_1?s=books&ie=UTF8&qid=1290273108&sr=1-1 is the best reference. It's got pretty extensive annotation and comentary on the why and how of the standard.

仙气飘飘 2024-10-10 17:04:29

https://msdn.microsoft.com/en-us/library/fw5abdx6。 ASPX
《C 语言参考》描述了在 Microsoft C 中实现的 C 编程语言。本书的组织基于 ANSI C 标准,并包含有关 Microsoft 对 ANSI C 标准的扩展的附加材料。

https://msdn.microsoft.com/en-us/library/fw5abdx6.aspx
The "C Language Reference" describes the C programming language as implemented in Microsoft C. The book's organization is based on the ANSI C standard with additional material on the Microsoft extensions to the ANSI C standard.

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