有没有解释所有速记库名称的地方?我不想要关于库的功能的文档,我只想知道标题的简称。它们是缩写吗?
答案 0 :(得分:22)
好的,如何获得列表:
答案 1 :(得分:12)
标准I / O(输入输出)和标准库
答案 2 :(得分:10)
您想知道如何为自己找到这些。 (我喜欢Kerrek SB的名单,但我不能责怪你想要知道如何自己看这些东西。)
首先要做的事情:如果您使用的是Debian或Ubuntu,除了通常的manpages-posix
软件包之外,我强烈建议您安装manpages-posix-dev
和manpages
软件包。除了standards之外,这些内容还允许您访问Linux man-pages project。
差异立即可见:
man 2 close # gives you the Linux documentation of the system call
man 3posix close # gives you the POSIX definition of the function
您还可以看到不太可能是系统调用的函数的区别:
man 3 qsort # Linux man-pages project describing the glibc function
man 3posix qsort # POSIX standard definition of the function, should be useful
description for any POSIX-compliant system
我还建议安装dict
,dictd
和dict-jargon
或dict-foldoc
(或两者)软件包:
$ dict stdin
2 definitions found
From The Free On-line Dictionary of Computing (26 July 2010) [foldoc]:
standard input/output
standard I/O
stderr
stdin
stdio
stdout
<programming, operating system> The predefined input/output
channels which every {Unix} process is initialised with.
Standard input is by default from the terminal, and standard
output and standard error are to the terminal. Each of these
channels (controlled via a {file descriptor} 0, 1, or 2 -
stdin, stdout, stderr) can be redirected to a file, another
device or a {pipe} connecting its process to another process.
The process is normally unaware of such {I/O redirection},
thus simplifying prototyping of combinations of commands.
The {C} programming language library includes routines to
perform basic operations on standard I/O. Examples are
"printf", allowing text to be sent to standard output, and
"scanf", allowing the program to read from standard input.
(1996-06-07)
From V.E.R.A. -- Virtual Entity of Relevant Acronyms (June 2006) [vera]:
STDIN
STandarD INput
$ dict stdlib
No definitions found for "stdlib"
$
(好笑,对吧?没有你想要的那个。但是,它们仍然是很棒的工具。)
答案 3 :(得分:5)
stdio:标准输入/输出
http://www.cplusplus.com/reference/clibrary/cstdio/
“...使用C标准输入和输出库(cstdio,在C语言中称为stdio.h)”
stdlib:标准库
http://www.cplusplus.com/reference/clibrary/cstdlib/
“C标准通用公用事业图书馆 这个标题定义了几个通用函数......“