Skip to content

Commit

Permalink
AddUTF8FortranWCaveats
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Jan 18, 2022
1 parent d41ea34 commit cca0fcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chapters/functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,7 @@ \subsubsection{Simple Types}\label{simple-types}
\end{center}

Sending string literals to FORTRAN~77 subroutines/functions is supported for Lapack/Blas-routines, and the strings are \textsc{nul}-terminated for compatibility with C.
The strings should be UTF-8 encoded similarly as for C to be compatible with C, even though the support in FORTRAN~77 is unclear and it is not relevant for the Lapack/Blas-routines.
Returning strings from FORTRAN~77 subroutines/functions is currently not supported.

Enumeration types used as arguments are mapped to type int when calling an external C function, and to type \lstinline!INTEGER! when calling an external FORTRAN function.
Expand Down

0 comments on commit cca0fcf

Please sign in to comment.