於 Debian / Ubuntu Linux 要使用 MAN 直接查 C 的函式庫、程式範例, 安裝 manpages-dev 即可查詢.
安裝
- apt-get install manpages-dev
查詢
列出此 Function 詳細說明與範例
- man 3 <function>
- 範例: man 3 printf
列出 與 此字 有關的 Function
- man -k <keyword>
- 範例: man -k printf
asprintf (3) - print to allocated string
dprintf (3) - print to a file descriptor
fprintf (3) - formatted output conversion
fwprintf (3) - formatted wide-character output conversion
printf (1) - format and print data
printf (3) - formatted output conversion
snprintf (3) - formatted output conversion
sprintf (3) - formatted output conversion
swprintf (3) - formatted wide-character output conversion
vasprintf (3) - print to allocated string
vdprintf (3) - print to a file descriptor
vfprintf (3) - formatted output conversion
vfwprintf (3) - formatted wide-character output conversion
vprintf (3) - formatted output conversion
vsnprintf (3) - formatted output conversion
vsprintf (3) - formatted output conversion
vswprintf (3) - formatted wide-character output conversion
vwprintf (3) - formatted wide-character output conversion
wprintf (3) - formatted wide-character output conversion
列出 MAN 文件位置
- man -wa <function>
- 範例: man -wa printf
/usr/share/man/man1/printf.1.gz
/usr/share/man/man3/printf.3.gz