Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Using extern C in C++

In C++, when using C libraries (with source code) do the following in the header file that is being #included

#ifdef __cplusplus
extern "C"
{
#endif
//content of header file
#ifdef __cplusplus
}
#endif