c_cvtdms - Convert a latitude or longitude value in fractional degrees to degrees, minutes, and seconds

SYNTAX

FUNCTION c_cvtdms(latlon, deg, mins, sec)

    double	*latlon;
    long	*deg;
    long 	*mins;
    long 	*sec;

PARAMETERS

latlon (double *, input)

The latitude or longitude value expressed in fractional degrees.

deg (long *, output)

The number of integer degrees.

mins (long *, output)

The number of integer minutes.

sec (long *, output)

The number of integer seconds.

DESCRIPTION

Convert a double precision latitude or longitude to integer degrees, minutes, and seconds. Fractional seconds are truncated by this conversion. If latlon is between 0.0 and -1.0, the sign of the return values will not be correct. Consequently, this condition must be checked for in the calling routine.

RETURN VALUE

c_cvtdms() has no return value.