There are 5 variable declaration routines following the same calling conventions
Argument Data Type Name of Subroutine
REAL(KIND=8) SIC_DEF_DBLE
REAL(KIND=4) SIC_DEF_REAL
INTEGER(KIND=4) SIC_DEF_INTE
CHARACTER(LEN=*) SIC_DEF_CHAR, SIC_DEF_STRN, SIC_DEF_CHARN
LOGICAL(KIND=4) SIC_DEF_LOGI, SIC_DEF_LOGIN
The calling syntax is the following
CALL SIC_DEF_Name (NAME,VARIABLE,READONLY,ERROR)
for LOGI and CHAR, and
CALL SIC_DEF_Name (NAME,VARIABLE,NDIM,DIM,READONLY,ERROR)
for DBLE, REAL, INTE, CHARN, and LOGIN, NDIM being the number of dimensions,
and DIM the dimensions of the array VARIABLE, and
CALL SIC_DEF_STRN (NAME,VARIABLE,LEN,READONLY,ERROR)
LEN being the length of VARIABLE.
NAME is the name of the SIC variable, VARIABLE the name of
the corresponding FORTRAN variable, READONLY a logical indicating
whether the variable should be Read-Only (.TRUE.) or Read-Write (.FALSE.). ERROR is a logical error flag set by SIC if the
variable could not be defined.
In addition, SIC_DEFSTRUCTURE(Name,readonly,error) can be used to define SIC structures.