我非英语母语,因此有些惯用术语我不懂。
函数 fileno()
或 header errno.h
中的“no”真正含义是什么?
“no”是“number”的缩写吗?
如果是,为什么?
最佳答案
在 man documentation of fileno()
这不是明确的,但这样写:
The function
fileno()
examines the argument stream and returns its integer descriptor.
因此,根据这个解释,我们应该说“no”表示文件描述符。
但是在 man description of errno
有明确的描述:
errno
- number of last error
因此我们可以推断“no”实际上意味着“number”。
无论如何,维基百科明确了 Numero sign 的解释:
The numero sign or numero symbol, № (also represented as Nº, No, No./no. (US English),1 or No/no (UK English); plural Nos./nos. (US English) or Nos/nos (UK English)2), is a typographic abbreviation of the word number(s) indicating ordinal numeration, especially in names and titles.
如果您仍有疑问,还有 Wikipedia page for errno.h上面写着:
It defines macros for reporting and retrieving error conditions using the symbol errno (short for "error number").
关于c++ - fileno, errno : What does the "no" mean?(非母语英语),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59391062/