FUNCTION c_wdbrel(fp_rel, total_pts, num_pts, pnts)
FILE *fp_rel; long *total_pts; long *num_pts; float pnts[];
The file pointer to the WDBII relative file.
The total number of points in the line segment. This value may be retrieved from the associated WDBII sequential file.
The number of points returned in pnts.
The latitude/longitude points defining the segments. This array must be dimensioned to be two times the maximum number of points to read. Points are stored as latitude and longitude, so two consecutive array elements define one point.
Check to see if the file to read is at the EOF (end of file). Read the points for the segment from the WDBII relative file. Determine the number of points read. This function may be called until all of the points in the line segment have been returned. A maximum of 50 points will be read at a time. Locating to the proper spot within the WDBII relative file may be accomplished by calling c_wdbseq().
c_wdbrel() returns
E_SUCC --> Successful completion E_EOF --> End of file was encountered E_FAIL --> Operation failed