I understand the logic, but no clue to set switch_var. > Sent: Monday, January 16, 2017 at 6:31 AM > From: "Martin Kühne" <mysat...@gmail.com> > To: "dev mail list" <dev@suckless.org> > Subject: Re: [dev] cal -5 and -7 > > // 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 > >
- [dev] cal -5 and -7 Antoni V.
- Re: [dev] cal -5 and -7 Martin Kühne
- Re: [dev] cal -5 and -7 Antoni V.
- Re: [dev] cal -5 and -7 Martin Kühne