Mix C and C++

Hi,

i have a question. Is it possible to write a code that callable both from C and C++?

I want to write a logger which put some logs in a specific file and also i should call its functions from both C and C++.
Yes - google extern "C"
Also look for the __cplusplus macro
Thank you
Topic archived. No new replies allowed.