有沒有解釋所有速記庫名稱的地方?我不想要這些圖書館做什麼的文件,我只想知道標題是什麼。他們是縮寫嗎?「stdio」和「stdlib」在C中代表什麼?
回答
的ICU版本,你想知道如何找到這些自己。 (我喜歡Kerrek SB的名單,但我不能責怪你想知道如何自己去看這些東西。)
首先要做的事情:如果你在Debian或Ubuntu上,我強烈建議安裝除了通常的manpages
封裝外,還有manpages-posix
和manpages-posix-dev
封裝。除了Linux man-pages project之外,還可以訪問standards。
不同的是立即可見有:
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"
$
(搞笑吧?沒有你想要的之一。但是,它們仍然是很棒的工具。)
標準輸入輸出:標準輸入/輸出
http://www.cplusplus.com/reference/clibrary/cstdio/
」 ...使用C標準輸入輸出庫( cstdio,在C語言中稱爲stdio.h)「
stdlib:標準庫
http://www.cplusplus.com/reference/clibrary/cstdlib/
「C標準通用工具庫 這個頭文件定義了幾個通用的功能......」
OK,怎麼樣得到一個列表吧,然後:
- 「標準輸入輸出」:標準輸入/輸出
- 「STDLIB」:標準庫
- 的 「printf」:打印格式化
- 「fprintf中」:文件打印格式化( 「打印格式到文件」)
- 「的sprintf」:字符串打印格式( 「打印格式設置爲串」)
- 「vfprintf」:可變參數fprintf中
- 「的fputc」 :文件把字符( 「把焦炭引入文件」)
- 「scanf函數」:掃描格式
- 「FREAD」:文件讀取( 「從文件中讀取」)
- 「並行線程」:POSIX線程
- 「 uint16_t「:無符號整型,16位寬
- 「sigatomic_t」:可以在信號處理程序中原子級訪問的類型
- 「_t」通常:爲標準庫中的類型名稱保留的後綴。
- 「浮動」:浮點數
- 「雙重」:雙精度浮點數
- 「CHAR」:字符
- 「位」:二進制數字
- 「FD」:文件描述符
- 「fcntl.h」:文件控制(Posix文件描述符)
- 「ioctl。H「:I/O控制(也POSIX)
- 」STAT「:一個文件(也POSIX)
- 的狀態 」LSTAT「:狀態,可能是鏈接本身
- 的 」FSTAT「:的狀態文件描述符
- 「睡眠」:中斷正常活動而無需支持任何活動
- 「usleep」:上面的版本,以微秒(μs)爲參數,'u'看起來有點像'μ'同時是基本的ASCII
- 「recv」:receive
- 「creat」:create
- 「STR」:串,在C這通常指的是空終止字符數組
- 「strtok的」:標記化串
- 「POW」:功率
- 「frexp」:小數部分(有效數)和指數
- 「ABS」:絕對值
- 「malloc的」:存儲器分配
- 「釋放calloc」:分配和澄清,初始狀態是零
- 「wcsrtombs」:寬字符串到多字節字符串,折返
- 「wctomb」:寬字符到多字節字符
- 「iconv」:???
- 「uconv」: 「的iconv」
不錯的開始。現在你怎麼知道,例如,「printf」中的「f」代表「格式」?你一定已經知道了某個地方...當然,其中很多是顯而易見的,但其他的並不是那麼多。看起來就像是在某個地方記錄的那樣。不過謝了,我想知道那個列表中的一些。 – Marty
'usleep'中的'u'不是必須的。微(μ)是μ(μ),因爲它的參數是微秒。 –
@FrederickCraine:因爲I/O可以是未格式化(「fread」)或格式化(「fprintf」)。一旦你知道了,你應該能夠弄清楚「f」是什麼意思。 R:當然你一定是在開玩笑。 ;-) –
- 1. C stdlib/stdio的陰影功能
- 2. []在C#中代表什麼#
- 3. STL和stdlib之間有什麼關係
- 4. C STDIO()
- 5. #在C++代碼中代表什麼?
- 6. 什麼是在C#中的事件和代表的替代?
- 7. 爲什麼Scala stdlib中沒有ARM?
- 8. @ []在目標c中代表什麼?
- 9. 'ccp'在Cocos2d/Objective-C中代表什麼?
- 10. T在C#中代表什麼?
- 11. 'Nil'在Obj-C中代表什麼?
- 12. << =代表什麼(在C中)?
- 13. 「<<」在C#中代表什麼?
- 14. 與C stdio庫相比,C++ iostream必須提供什麼?
- 15. 在Python中,+ =, - =,* =和/ =代表什麼?
- 16. 在文檔中,'['和']'代表什麼?
- 17. stdlib cdefs.h中的C++錯誤?
- 18. C++ stdio :: rename();同步?
- 19. 日期類在Ruby stdlib和Rails中不同stdlib
- 20. 什麼是C++代表?
- 21. 克++ - 4.8 C++ STDLIB dylib
- 22. Kotlin stdlib和Databinding
- 23. 爲什麼Ruby的stdlib有DateTime類?
- 24. 用stdio和C++/Python管道EOF問題
- 25. C#中代表的用法是什麼?
- 26. cURL中的'c'代表什麼?
- 27. C#中的代表是什麼?
- 28. 什麼代表C++中的Math.IEEERemainder(x,y)?
- 29. 什麼(無效(^)(ID)代表在Objective-C?
- 30. C++ - const在這裏代表什麼?
*'$ dict stdin' * - 只是一個錯字?也許一個程序員的笑話被一個人打斷了? ;-) – Wolf