How do you link a C++ program to C functions?

How do you link a C++ program to C functions?
A: By using the extern "C" linkage specification around the C function declarations.

No comments:

Post a Comment

comment on this post

Note: Only a member of this blog may post a comment.