Hi,

Can someone tell me when I should use the following functions calls?
SetBitMacro() is used when writing the application info block numeric data.
But I don't know why.  Are there any reference to these functions?  Thank
you in advance.


// Extract the bit at position index from bitfield.  0 is the high bit.
#define BitAtPosition(pos)
((ULong)1 << (pos))
#define GetBitMacro(bitfield, index)            ((bitfield) &
BitAtPosition(index))
#define SetBitMacro(bitfield, index)            ((bitfield) |=
BitAtPosition(index))
#define RemoveBitMacro(bitfield, index) ((bitfield) &=
~BitAtPosition(index))


Elizabeth Chang
ISSI Consulting Group
[EMAIL PROTECTED]



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to