4 int eraAf2a(
char s,
int ideg,
int iamin,
double asec,
double *rad)
43 *rad = ( s ==
'-' ? -1.0 : 1.0 ) *
44 ( 60.0 * ( 60.0 * ( (
double) abs(ideg) ) +
45 ( (
double) abs(iamin) ) ) +
49 if ( ideg < 0 || ideg > 359 )
return 1;
50 if ( iamin < 0 || iamin > 59 )
return 2;
51 if ( asec < 0.0 || asec >= 60.0 )
return 3;
int eraAf2a(char s, int ideg, int iamin, double asec, double *rad)