[IDEA] New pages for types: structs and typedfefs

Alejandro Colomar
2020-09-11T17:29:55Z

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