Inversion

Dave Kraft davek at lakesys.UUCP
Wed May 3 09:31:57 AEST 1989


Hi,
I was trying to think up a way of en/decrypting a file, and I was wondering if
there was any way to invert a binary number like the following example:

10101010   (decimal 170)
01010101   (decimal 85)

If anyone could help me here, I would be really greatful.

Thanks in advance.
Dave
-- 
davek at lakesys.lakesys.com -OR- uunet!marque!lakesys!davek
-------------------------------------------------------------------------------
"The mystical divinity of unashamed felinity.  'Round the cathedral rang
'Vivat!'  Life to the everlasting Cat!" --'Cats'



More information about the Comp.lang.c mailing list