Each header from the C Standard Library is included in the C++ Standard Library under a different name, generated by removing the .h, and adding a 'c' at the start, for example 'time.h' becomes 'ctime'. The only difference between these headers and the traditional C Standard Library headers is that where possible the functions should be placed into the std:: namespace (although few compilers actually do this).
Since c functions are put into the std::
namespace,I tried :
man std::printf
but got :
No manual entry for std:printf
Any reasons?(I've installed libstdc++-doc
and I've no problem with canonical c++ stuff like man std::cout
)
UPDATE
The reason to say c++ is junky at least includes:
- junky c++ manual
- an empty c++ programe needs
libstdc++
,libm
andlibgcc_s
,while c programe only needslibc
.