C-API: Fixing mistake where C++ was used in a C header file.
C-API: Fixing bug in header and changing special functions.