The Scilab function is a=calc(str). Its input is a string and its output is a scalar.
The corresponding Fortran subroutine is subroutine fcalc(str,a). Its arguments are a string str (used as input) and an integer a (used as output).
We reserve a fixed dimension of 10 for the string.
The description file is the following:
calc str str string 10 a scalar fcalc str a str char a integer out a ***********************