Home
_newyear.c - scc - simple c99 compiler HTML git clone git://git.simple-cc.org/scc DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- _newyear.c (166B) --- 1 /* 2 * Happy New Year!!!! 3 */ 4 int 5 _newyear(int year) 6 { 7 int day; 8 9 year += 1900 - 1; 10 day = 1 + year + year/4; 11 day -= year/100; 12 day += year/400; 13 14 return day % 7; 15 }