[IDEA] New pages for types: structs and typedfefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Michael Kerrisk (man-pages)" <mtk.manpages@xxxxxxxxx>
- Subject: [IDEA] New pages for types: structs and typedfefs
- From: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx>
- Date: Fri, 11 Sep 2020 14:47:43 +0200
- Cc: linux-man <linux-man@xxxxxxxxxxxxxxx>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0
Hello Michael,
In the past, when I was beginning to learn C, I had a lot of trouble
with the types.
When you want to know about a function, you just type 'man function' and
that tells you everything you need to know.
However, when you need to use a type, such as a struct or one of those
weird POSIX types (e.g., loff_t), the only solution is to grep through
the system headers (e.g., 'cd /usr/include/; grep -rn "struct
timespec"'), unless you already know in which man page the type appears.
I remember well when I wanted to use 'ssize_t' for the first time: it
was a nightmare to find which header I had to include to get it.
Do you agree that it would be a good idea to write man pages for the
types, or at least write link pages that link to the page where the type
is mentioned?
Thanks,
Alex
[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]