开发者

About the man usage

man 3p printf
man 3 printf

The above two man page gives different info of printf.

What's different for man 3开发者_Python百科 and man 3p?


$ man -k printf | grep '^printf'
printf (1)           - format and print data
printf (1posix)      - write formatted output
printf (3)           - formatted output conversion
printf (3posix)      - print formatted output

You have probably installed the manpages-posix and manpages-posix-dev packages on your system, as I have. This also gives you the POSIX-prepared manpages, which is an excellent way to determine if you're relying on behavior specific to your system or standardized behavior.


I believe you can find the answer to this yourself with:

man man

But what is happening is your system defines 3 and 3p as separate sections. This is generally used for "package" man pages, e.g. for the POSIX package.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜