Strftime's %C and %y formats versus wide-ranging tm_year valu es
eggert at CS.UCLA.EDU
Fri Sep 24 19:20:35 UTC 2004
Ken Pizzini <"tz."@explicate.org> writes:
> The C language definition has typically left as "implementation defined"
> whether the result of (-42)%100 is -42 or +58
That was true for C89, but it's not true for C99, which standardized
on "Fortran" integer division, so that (-42)%100 is -42 and (-42)/100
It may be worth recording for older C89 systems that don't implement
Fortran division, not that I know of any; but for newer systems we can
rely on the Fortran model.
More information about the tz