#include "worgen.h"
FUNCTION c_degdms (deg, dms, code, check)
double *deg; double *dms; char *code; char *check;
The input value of the angle in the format specified by code.
The output value of the deg in packed degrees, minutes, seconds (DDDMMMSSS.SS) format.
The format that deg is currently in.
= DEG: Total degrees = MIN: Total minutes = SEC: Total seconds
The angle limits that the output angle value will be checked against. Valid values are:
= LAT: Latitude--upper limit is 90.0, lower limit is -90.0 = LON: Longitude--upper limit is 180.0, lower limit is -180.0 = CIR: Circle--upper limit is 360.0, lower limit is 0.0
The c_degdms call is used to convert the deg from the format specified in code to a packed degrees, minutes, seconds format (DDDMMMSSS.SS) and return the value in dms.
c_degdms() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed