37static void format(
char *,
int,
int,
double,
char);
38static void ll_parts(
double,
int *,
int *,
double *);
47 format(buf, d,
m, s, h);
52 return "dd:mm:ss{N|S}";
62 format(buf, d,
m, s, h);
67 return "ddd:mm:ss{E|W}";
78 format(buf, d,
m, s, h);
86static void format(
char *buf,
int d,
int m,
double s,
char h)
129 ll_parts(
lat, d,
m, s);
152 ll_parts(
lon, d,
m, s);
155static void ll_parts(
double ll,
170 *s = ((
ll - *d) * 60 - *
m) * 60;
void G_trim_decimal(char *)
Removes trailing zeros from decimal number.