// 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

Reply via email to