Yes, that's what ANSI says, but it's not the way it's implemented in many cases...
/ Henrik Grubbström (Lysator)
Previous text:
2003-01-31 15:55: Subject: XPM and sort
I guess one has to check the ANSI C standard to be sure, but at least the glibc manual says "The value returned has the same sign as the difference between the first differing pair of bytes (interpreted as `unsigned char' objects, then promoted to `int')."
/ Niels Möller ()