Re: man string vs man string.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lao,

On 1/29/22 05:25, Lao Shaw wrote:
> Under linux `man string` is ISO C at /usr/include/string.h, `man
> string.h` is for Posix manpages.
> 
> unlike `man stdio` for ISO C, in particular, `man string` does not
> have APIs like `memcpy, memcmp` etc, which is in /usr/include/string.h
> 
> What am I missing?

Those pages, although similar to the posix header file manual pages, are
not a header file manual page, but a manual page about a group of
functions.  There's 2 groups of functions in string.h(0p): those about
character strings, and those about byte strings (i.e., raw memory,
non-NUL-terminated).  string(3) only documents the former.

I think it would be good to add a man0 section to the Linux man-pages
project (as done in the POSIX man-pages), and I started by writing
sysexits.h(0), but that's likely to take a lot of time to have complete.
There, I'd add a string.h(0), which would probably have two separate
subsections, about memory functions, and about string functions.

Thanks,

Alex


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux