c_wdbopen - Open the specified WDBII files

SYNTAX

FUNCTION c_wdbopen(filenam, fp_seq, fp_rel)

    char *filenam;
    FILE **fp_seq;
    FILE **fp_rel;

PARAMETERS

filenam (char *, input)

Root host file name of WDBII files to be opened.

fp_seq (FILE **, output)

File pointer to the WDBII sequential file. The WDBII sequential file serves as a look-up table for retrieving geographic coordinates from the WDBII relative file.

fp_rel (FILE **, output)

File pointer to the WDBII relative file.

DESCRIPTION

Get the location of the World Data Bank II files from the environment variable WDBII. Open (with read permission) the sequential file filenam.seq and the relative file filenam.rel in the WDBII directory.

RETURN VALUE

c_wdbopen() returns

    E_SUCC --> Successful completion
    E_FAIL --> Operation failed