diff --git a/chapters/functions.tex b/chapters/functions.tex index 287d68574..d2eba392d 100644 --- a/chapters/functions.tex +++ b/chapters/functions.tex @@ -1756,7 +1756,7 @@ \subsubsection{Simple Types}\label{simple-types} \begin{nonnormative} The reason why it is not allowed to return a string allocated with, for instance, \lstinline[language=C]!malloc! is that there is no transfer of ownership when a string is returned from the external function. The external code would remain the owner of such a string, and would be responsible for eventually releasing the memory at some point. -Consequently, the Modelica simulation environment would not be able to assume that all only its own string deallocation routines could invalidate any of the strings returned by external functions. +Consequently, the Modelica simulation environment would not be able to assume that only its own string deallocation routines could invalidate any of the strings returned by external functions. \end{nonnormative} \lstinline!Boolean! values are mapped to C such that \lstinline!false! in Modelica is 0 in C and \lstinline!true! in Modelica is 1 in C. If the returned value from C is 0 it is treated as \lstinline!false! in Modelica; otherwise as \lstinline!true!.