Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!mcnc!gatech!bloom-beacon!husc6!cmcl2!beta!hc!hi!kurt
From: kurt@hi.UUCP (Kurt Zeilenga)
Newsgroups: comp.lang.c
Subject: More writing readable code
Message-ID: <11128@hi.UUCP>
Date: Thu, 16-Jul-87 09:39:03 EDT
Article-I.D.: hi.11128
Posted: Thu Jul 16 09:39:03 1987
Date-Received: Sat, 18-Jul-87 07:19:28 EDT
Reply-To: kurt@hc.dspo.gov (Kurt Zeilenga)
Organization: U. of New Mexico, Albuquerque
Lines: 15

Often one might have two "boolean" variables, say a and b, and you would
like to know if A and B are both of the same truth value (zero or non-zero).
I have always done this like:

	(!A == !B)

to avoid the case that A and B are both non-zero but no the same integer
value.

What do all think about this?  Any other clean ways of writing this?
Is it readable? (I think so, but then ...)
-- 
	Kurt Zeilenga	 (zeilenga@hc.dspo.gov)		I want my talk.flame!

	"Remember, Mommie, I'm off to get a commie..."