TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Auke Reitsma
from: Bob Stout
date: 1998-08-16 18:24:40
subject: More silly questions

On , Auke Reitsma (2:281/400.20{at}fidonet) wrote: 

 > Set bit 3:

 >   mr.Attribute |= (1<<3);

 > Clear bit 3:

 >   mr.Attribute &= ~(1<<3);

 > Change bit 3 to the other value:

 >   mr.Attribute ^= (1<<3);

 > Note:
 >   1<        I.e. a 'one' shifted N times to the left.

Auke...

  Sheesh, I take some time off and everyone seems to forget about SNIPPETS
in my absence! Single bit operations and multi-dimensional dynamic array
manipulation are two things SNIPPETS has covered in spades! 


--- QM v1.00
* Origin: MicroFirm : Down to the C in chips (1:106/2000.6)
SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 810
SEEN-BY: 639/252 670/213 218
@PATH: 30883/6 106/2000 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.