BitSet

Sets the target bit

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.x, 4.x, 5.x, 6.x
Service:Bit Array

Syntax

  #include <nwbitops.h>  
   
  void BitSet  (  
     void   *bitArray,   
     LONG    bitNumber); 
  

Parameters

bitArray
(IN) Points to the bit array.
bitNumber
(IN) Specifies an index into the bit array.

Return Values

None

Remarks

The bitArray parameter specifies the target array. The bit number can be greater than 32, targeting a bit well into the target array.

See Also

BitClear, BitTest

Example

  #include <nwbitops.h>  
  void   *bitArray;  
  LONG    bitNumber;  
  BitSet (bitArray, bitNumber);