209. C library functions can be called if an INTERFACE is provided.#

topic: Interoperability with C and C++

Note

This tip is a draft1.

Fortran can call a function from the C standard library if an INTERFACE is provided. For example, it may be faster to call C atoi() or atof() than to use an internal read to read an integer or double from a string.



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.