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