41 |
|
|
42 |
|
#define LATLONSTR "LATLONG=" |
43 |
|
#define LLATLONSTR 8 |
44 |
< |
#define islatlon(hl) (!strncmp(hl,LATLONSTR,LLATLONSTR)) |
45 |
< |
#define latlonval(ll,hl) sscanf((hl)+LLATLONSTR, "%f %f", \ |
46 |
< |
&(ll)[0],&(ll)[1]) |
44 |
> |
#define islatlon(hl) !strncmp(hl,LATLONSTR,LLATLONSTR) |
45 |
> |
#define latlonval(ll,hl) (sscanf((hl)+LLATLONSTR, "%f %f", \ |
46 |
> |
&(ll)[0],&(ll)[1]) == 2) |
47 |
|
#define fputlatlon(lat,lon,fp) fprintf(fp,"%s %.6f %.6f\n",LATLONSTR,lat,lon) |
48 |
|
/* defined in header.c */ |
49 |
|
extern void newheader(const char *t, FILE *fp); |