How do you man cpp functions? How do you man cpp functions? linux linux

How do you man cpp functions?


As far as I know, c++ functions are not included by default in man pages in any linux distribution. You have to use manually install them with :

yum install man-pages libstdc++-docs


Do you have man pages installed?

sudo apt-get install manpages-dev glibc-docsudo apt-get install libstdc++6-4.4-doc

Where are the man pages for C++?

Whatever you are doing should work if man pages are installed properly. see here

Installing these packages for your distro won't be very difficult. :-)


First install the man pages as the others suggested.

Then a nice workflow with man is to use the -k arg, since -k is "search for".

So if we take a general example with the classical c function printf (since it is ambiguous)

$ man -k printf...printf (1)           - format and print dataprintf (1posix)      - write formatted outputprintf (3)           - formatted output conversionprintf (3posix)      - print formatted output...

Then you can see the c functions as 3 and 3posix and the shell command as 1 and 1posix. And since we would like to read about the c function.

$ man 3posix printf

So in your case you should be able to search for your lib and then read it. (if it is installed that is).

Hope it clarifies some part of your question.