next up previous contents index
Next: 6.3.1.3 Examples Up: 6.3.1.2 Writing compatible code Previous: 6.3.1.2 Writing compatible code

6.3.1.2.1 Messages and Error Messages

To write messages in the Scilab main window, user must call the out Fortran routine or cout C procedure with the character string of the desired message as input argument.

To return an error flag of an interfaced routine user must call the erro Fortran routine or cerro C procedure with the character string of the desired message as input argument. This call will produce the edition of the message in the Scilab main window and the error exit of Scilab associated function.

Input and output

To open files in Fortran, it is highly recommended to use the Scilabroutine clunit. If the interfaced routine uses the Fortran open instruction, logical units must in any case be greater than 40.

      call clunit( lunit, file, mode)
with:

Files opened by a call to clunit must be close by

      call clunit( -lunit, file, mode)
In this case the file and mode arguments are not referenced.


next up previous contents index
Next: 6.3.1.3 Examples Up: 6.3.1.2 Writing compatible code Previous: 6.3.1.2 Writing compatible code
Scilab Group