Function: FIEINI
Purpose: Decodes a string containing a mathematical expression
for FIEDO.
Category: MATH
File: fie.c
Author: K.G. Begeman
Use: INTEGER FIEINI( STRING, Input CHARACTER*(*)
FIEID, Output INTEGER
ERRPOS ) Output INTEGER
FIEINI Returns:
>0 : largest parameter number in expression.
This number of parameters must be present
in FIEDO.
0 : no parameter in expression.
-1 : syntax error in expression at ERRPOS.
-2 : no storage space left.
STRING String containing the mathematical expression
to be decoded for evaluation by FIEDO. See
FIE.DC2 for a detailed description on the
syntax and possibilities.
FIEID An non negative number which is unique for
the evaluated expression. FIEDO needs this
id to evaluate the expression.
ERRPOS If a syntax error was detected by FIEINI, this
number gives the approximate position in the
string where the error occurred.
Updates: Aug 1, 1989: KGB, original document.