35 ERRMSG(
"Give parameters: <year> <mon> <day>");
38 const int year = atoi(argv[1]);
39 const int mon = atoi(argv[2]);
40 const int day = atoi(argv[3]);
44 printf(
"%d %d\n", year, doy);
int main(int argc, char *argv[])
void day2doy(int year, int mon, int day, int *doy)
Convert a calendar date to day-of-year.
JURASSIC library declarations.
#define ERRMSG(...)
Print an error message with contextual information and terminate the program.