Use from C++

 

For the C++ programming language, the header files contain the following additional statements that are included only when a C++ compiler is used:

#ifdef __cplusplus
  extern "C" {
#endif

/* rest of header file */

#ifdef __cplusplus
  }
#endif

 

Parent topic:

Coding in C


fg11720_