Creating a FORTRAN interface to a C function that returns a char*
Strings of dynamic length are always a bit tricky with the C interaction. A possible solution is to use pointers. First a simple case, where you have to hand over a null-character terminated string to a C-Function. If you really pass the string only in, you have to ensure to finalize it with the c_null_char, … Read more