TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Darin McBride
from: Simon Avery
date: 1998-08-13 14:01:42
subject: More silly questions

Turing test result; Darin uses a mid-80's AI algorithm.

 SA>> unsigned char  Attribute;
 SA>> Simple question. How do I modify the values?

 DM> Let's simplify things...

 DM> #define BAR_ENABLEECHOINFO 0x01                    /* bit 0 'on' */
 DM> #define BAR_COMBINEDACCESS 0x02                    /* bit 1 'on' */
 DM> #define BAR_FILEATTACHES   0x04 /* !!! - not 3! */ /* bit 2 'on' */
 DM> #define BAR_ALLOWALIASES   0x08                    /* bit 3 'on' */
 DM> /* etc - 0x10, 0x20, 0x40, 0x80 */

Binary progression!

 DM> struct foo f;
 DM> f.bar |= BAR_ENABLEECHOINFO; /* turn on bit 0 */
 DM> f.bar &= ~BAR_COMBINEDACCESS; /* turn off bit 1 */

Thanks Darin, /exactly/ what I wanted and explained so I can understand
it. Thanks again, now I can get to work.

Simon

... I should have worn white - it goes with everything! * Cat
--- Digital Dilemma
* Origin: TAGLINES_UK Get it from the backbone now! (2:255/90)
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: 255/90 3 1 251/25 2320/38 270/101 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™.