我在 C 函数中找不到格式说明符部分printf。我已经man printf在我的 Linux 发行版上做了一个,但它没有提供该信息。
到目前为止,每次我需要找到一种格式时,我都会进行谷歌搜索。我确信这个问题之前已经在 stackoverflow 上被问过,但我找不到它。
Unix 手册分为几个部分。以下为前三项:
bash)open)fopen)man printf返回找到的第一个匹配项,但您不需要有关printf命令行实用程序的信息;您需要有关printfC 函数的信息。因此,您应该使用
man 3 printf
Run Code Online (Sandbox Code Playgroud)