C++ man pages in Ubuntu
sudo apt-get install manpages-dev glibc-doc
Look here too for STL.
Where are the man pages for C++?
If you use the "normal" libstdc++ shipped with g++, its documentation is available online here.
Most Linux distributions make it also available offline as a particular package; for Debian-derived distros, for example, it's libstdc++-6-<version>-doc
(e.g. on my Ubuntu machine I have libstdc++-6-4.4-doc
installed). In general the documentation will be put somewhere like /usr/share/doc/libstdc++-6-4.4-doc
.
This about implementation-specific documentation; for compiler-agnostic docs, instead, many sites on the Internet provide reference documentation for the standard library.
One of the most referenced is nowadays cppreference.com, that is actively maintained, tends to be very faithful to the standard and shows well the differences between the various standard versions; it can be a bit intimidating to newbies, though.
cplusplus.com historically was one of the most used (especially as it is very "liked" by search engines), but was known to contain several errors or incorrect simplifications; I don't know if it got any better in these last years.
Also, the C++ library section on msdn.microsoft.com has got much better in the recent years in separating what are the Microsoft-specific details from what the standard dictates.
Finally, if you want precision up to the paranoia, the ultimate normative document is the C++ standard, that is sold from ISO, ANSI and BSI (for a quite high price); there are however several drafts available for free, which are more than good enough for "casual use".
In Linux, how do I get man pages for C functions rather than for bash commands?
man 2 bind
You need a result from a different section of the manual! Man searches various sections for the information you want. As devnull lists below, the number indicates which section to search.
Incidentally, bind
is a system call, not a C library function. System calls (kernel calls) are in section 2 of the manual, library functions are in section 3.
man man
will tell you how to use the man command!
How to install man pages for C++11
Okay, I found this: https://github.com/aitjcize/cppman
Since cppman is no longer supported under Ubuntu/apt it has to be installed via
pip3 install cppman
and if you want to have the man pages offline you may cache them by
cppman -c
make sure to have your preferred source selected. cplusplus.com should be default.
Man pages for gcc Library functions
mknod()
the C function lives in section 2 of the man pages. You can view it using:
man -s2 mknod
In general things like this are likely to live in either section 2 (system calls) or section 3 (library calls)
Related Topics
Casting to Void* and Back to Original_Data_Type*
Qtextedit with Different Text Colors (Qt/C++)
Cocreateinstance Returning E_Nointerface Even Though Interface Is Found
Why Do My Sfinae Expressions No Longer Work with Gcc 8.2
Math Interface VS Cmath in C++
Send Binary File Over Tcp/Ip Connection
How to Compile: Unrecognized Relocation
In C++, Is There a Difference Between "Throw" and "Throw Ex"
Move the String Out of a Std::Ostringstream
Partial Template Specialization Based on "Signed-Ness" of Integer Type
What Are the Different Character Sets Used For
What Is a Cross-Platform Way to Get the Current Directory
Emplace an Aggregate in Std::Vector
How to Turn on Multi-Cpu/Core C++ Compiles in the Visual Studio Ide (2008)