First of all, it should be noted that you can read the standard specification of
stdlib.h at the Open Group who maintains the POSIX standard.
Actually I think there isn’t really much need to have a manual page on
stdlib.h
. Basically it would just list the definitions from that header file, but why would you need that? Usually it’s the other way round: You want to use a library function – say,
atexit()
or
realpath()
– and you have to find out which header file you need to include. The
atexit(3) and
realpath(3) manual pages will tell you that.
Even if you do want to know what’s in
stdlib.h
– for whatever reason –, well, then type
less /usr/include/stdlib.h
, or consult the reference standard at the Open Group linked above.
In the case of
stdio.h
it’s a little different. All the functions in this header file cover a common topic, namely buffered I/O streams, so it makes sense to have a manual page that documents the “big picture” of this. This is what the
stdio(3) manual page is good for. Conversely,
stdlib.h
is just a collection of mostly unrelated functions, so there is no such thing as a big picture. In those cases where some functions
are related, they do have a common manual page, for example see the
getenv(3) manual page that documents the
*env()
familiy of functions from
stdlib.h
.
On a final note, UNIX manual pages are intended to provide a reference documentation. They are
not intended as “howto” or tutorial or introduction to a certain topic (although some manual pages go into that direction). If you want that, then look for one on the internet using your search engine of choice. Also, my personal recommendation are the classic books by W. Richard Stevens, such as the renowned APUE (Advanced Programming in the UNIX Environment). If everybody read through that book
before touching a C compiler, the bug density of software would be considerably lower.