slaDbjin -
SYNOPSYS
void slaDbjin(string, nstrt, dreslt, jf1, jf2)
PARAMETERS
- char *string
-
- int *nstrt
-
- double *dreslt
-
- int *jf1
-
- int *jf2
-
DESCRIPTION
Convert free-format input into double precision floating point,
using slaDfltin but with special syntax extensions.
The purpose of the syntax extensions is to help cope with mixed
FK4 and FK5 data. In addition to the syntax accepted by slaDfltin,
the following two extensions are recognized by dbjin
1) A valid non-null field preceded by the character 'B'
(or 'b') is accepted.
2) A valid non-null field preceded by the character 'J'
(or 'j') is accepted.
The calling program is notified of the incidence of either of these
extensions through an supplementary status argument. The rest of
the arguments are as for slaDfltin.
Given
*string char string containing field to be decoded
*nstrt int where to start decode (1st = 1)
Returned
*nstrt int incremented
*dreslt double result
*jf1 int dfltin status: -1 = -OK
0 = +OK
+1 = null field
+2 = error
*jf2 int syntax flag: 0 = normal slaDfltin syntax
+1 = 'B' or 'b'
+2 = 'J' or 'j'
Called
slaDfltin
For details of the basic syntax, see slaDfltin.
P.T.Wallace Starlink 22 December 1993
SEE ALSO