208. Fortran 2003 standardized the interoperation of Fortran and C.#
topic: Interoperability with C and C++
Note
This tip is a draft1.
https://t.co/QqGhsxGbj6
— FortranTip (@fortrantip) May 3, 2022
F2003 standardized interoperation with C. Fortran can call a C function with an INTERFACE, and C can call Fortran procedures with prototypes. A C function with a void result interoperates with a Fortran subroutine. ISO_C_BINDING defines compatible KINDs.
- 1
From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.