_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 }
sccsimple c99 compiler | |
git clone git://git.simple-cc.org/scc | |
Log | Files | Refs | Submodules | README | LICENSE |