33 ERRMSG(
"Give parameters: <year> <doy>");
36 int year = atoi(argv[1]);
37 int doy = atoi(argv[2]);
42 printf(
"%d %d %d\n", year, mon, day);
int main(int argc, char *argv[])
void doy2day(const int year, const int doy, int *mon, int *day)
Converts a given day of the year (DOY) to a date (month and day).
MPTRAC library declarations.
#define ERRMSG(...)
Print an error message with contextual information and terminate the program.