33 ERRMSG(
"Give parameters: <year> <mon> <day>");
36 const int year = atoi(argv[1]);
37 const int mon = atoi(argv[2]);
38 const 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.