/ and % (was: effect of free())

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Sep 22 00:33:07 AEST 1989


In article <29775 at news.Think.COM> barmar at think.COM (Barry Margolin) writes:
>(personally, I think the implementation-dependent behavior of "/" and "%"
>is one of C's biggest warts, but I know that it's way too late to change it).

I could live with that, which is after all intended to permit the "natural"
machine operations to be used even though they're usually poorly designed.
The REALLY irksome thing is that there are something like four "mod"-like
functions and operators, none of them guaranteed to act like a true mod
operation!



More information about the Comp.lang.c mailing list