Does anyone have suggestions on how one can mix C++ and C code elegantly? Considering that when you are writing out method bodies,if one was to just call the C function (after making sure the header file was included in the current class), that would look a little out of place. Are there some elegant solutions to do this?
C.h and C.c are C class header and C file that contain my_c_function().
Calling my_c_function like this from within the .cpp file might be ok for one or two calls but quickly gets ugly for scalable projects. Any ideas how to do this otherwise?