It\'s said that when including C header files in C++, the \".h\" suffix should be removed and then add \"c\" at the beginning. For example, #include
Your algorithm is correct for most (all?) standard C headers, but unistd.h
is not part of standard C so standard C++ in turn doesn't include it with the other c...
headers.
unistd.h is not part of standard C. Standard C++ lib doesn't include it with the other c headers.
Because unistd.h
never was part of the C language. It is part of the Operating System.
<unistd.h>
, stands for unix standard header ,the name says it all.