home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH04 / A04192.TXT < prev    next >
Encoding:
Text File  |  1993-11-29  |  294 b   |  6 lines

  1. This example shows how you use a linkage specification to call a C
  2. function from a C++ program.  sum() is declared with the linkage
  3. specification extern "C".  This tells the compiler that sum() is a
  4. C function.  The C++ program can call sum() in the same way that
  5. it calls a C++ function.
  6.