Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>c4w_and()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
C4W_And()
Return the bitwise AND of two or more numbers
------------------------------------------------------------------------------

Syntax
C4W_And( <nValue1>, <nValue2>  [ , . . . , <nValueN> ] )   -->  nResult

Arguments
<nValue1>, <nValue2>, <nValueN> are numeric values.

Returns
The returned value is the bitwise AND of the values.

Description
This function performs a bitwise AND of the values, typically
to determine if a particular bit is set, or to extract one or
more bits.

The bottom 8 bits of a numeric value n can be extracted by
C4W_And( n, 255 ); the bottom 16 bits can be extracted by
C4W_And( n, 65535 ), or by using the C4W_LoWord() function.

Example
n = 130                  // 130 is the same as 128 + 2
? C4W_And( n, 2 )        // Result: 2


See Also: C4W_HiWord() C4W_LoWord() C4W_Not() C4W_Or()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson