| 75 | |
| 76 | #ifndef __isleap |
| 77 | static int __isleap(int year) |
| 78 | { |
| 79 | /* every fourth year is a leap year except for century years that are |
| 80 | * not divisible by 400. */ |
| 81 | /* return (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)); */ |
| 82 | return (!(year % 4) && ((year % 100) || !(year % 400))); |
| 83 | } |
| 84 | #endif |
| 85 | |
| 86 | static void num2str(char *c, int i) |