A foreign function is declared as
ffunction(<function-declaration>, <include-file>, <library>)where the function-declaration must be of the form
<type> fn(<type>);where
<type>
is either int
or float
.
In addition, the input type can be omitted, indicating no input argument.
Thus, <function-declaration>
means one of the following:
int fn(int); int fn(float); float fn(int); float fn(float); int fn(); // not 'fn(void)' float fn();