Jan 4, 2006 #1 billbose Programmer Joined Jan 15, 2001 Messages 66 Location US what does the statement "val &= ~flags;" mean
Jan 4, 2006 1 #2 Salem Programmer Joined Apr 29, 2003 Messages 2,455 Location GB [tt]val = val & ~flags;[/tt] The ~ inverts all the bits in flags So the result is that all the bits which were set in flags will now be clear in val. -- Upvote 0 Downvote
[tt]val = val & ~flags;[/tt] The ~ inverts all the bits in flags So the result is that all the bits which were set in flags will now be clear in val. --
Jan 6, 2006 Thread starter #3 billbose Programmer Joined Jan 15, 2001 Messages 66 Location US Thx for the info, Salem Upvote 0 Downvote