Calling a C function with various types and arguments from Fortran

The standard for Fortran states, “The C language allows specification of a C function that can take a variable number of arguments (ISO/IEC 9899:2018, 7.16). This document does not provide a mechanism for Fortran procedures to interoperate with such C functions.”

Generally there isn’t a good approach for C “varargs” functions.

1 Like