strcmp

der Mouse mouse at thunder.mcrcim.mcgill.edu
Wed Jun 26 20:03:06 AEST 1991


In article <67790004 at hpcupt1.cup.hp.com>, thomasw at hpcupt1.cup.hp.com (Thomas Wang) writes:

> #define COMP_GREATER   (1)
> #define COMP_EQUAL     (0)
> #define COMP_LESS      (-1)
> #define COMP_UNORDERED (MININT)

> #define LE(x) (-(x) >= COMP_EQUAL) /* less than or equal, -MININT == MININT */

-MININT is not necessarily equal to MININT.  Suppose integers are
sign-magnitude, or ones-complement, or balanced-ternary[%]....

[%] This is legal, though painful ugliness is mandated to preserve the
    appearance of binary for numbers from 0 to INT_MAX.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse at larry.mcrcim.mcgill.edu



More information about the Comp.lang.c mailing list