Re: [dev] cal -5 and -7

2017-01-17 Thread Martin Kühne
That's whatever you switch() on. current_arg[1] or something like that? sorry if that wasn't clear. cheers! mar77i

Re: [dev] cal -5 and -7

2017-01-17 Thread Antoni V.
I understand the logic, but no clue to set switch_var. > Sent: Monday, January 16, 2017 at 6:31 AM > From: "Martin Kühne" > To: "dev mail list" > Subject: Re: [dev] cal -5 and -7 > > // actually, merge me with '3', right away, too >

Re: [dev] cal -5 and -7

2017-01-16 Thread Martin Kühne
// actually, merge me with '3', right away, too case '5': case '7': nmons = switch_var - '0'; // subtracting '0' is generally safe if(--month < 1) { month += 12; year--; } break; cheers! mar77i