Code Examples.  
More...
Code Examples. 
Create a bitmap of specified length 
ClBitmapHandleT bitHdl  =   CL_BM_INVALID_BITMAP_HANDLE;
ClUint32T       bitNum  =   10;
{
    clLogError("EXP","BIT", "Failed to create bitmap.");
    return rc;
}
Set a bit of the bitmap 
ClUint32T       bitNum  =   5;
{
    clLogError("EXP","BIT", "Failed to set the bit 5.");
    return rc;
}
Check the status of a bit of the bitmap 
ClUint32T       bitNum      =   5;
ClInt32T        bitStatus   =   CL_BM_BIT_UNDEF;
{
    clLogError("EXP","BIT", "Failed to check the bit status.");
    return rc;
}
if(CL_BM_BIT_SET == bitStatus)
{
    clLogInfo("EXP","BIT", "Bit 5 is set.");
}
else if(CL_BM_BIT_CLEAR == bitStatus)
{
    clLogInfo("EXP","BIT", "Bit 5 is not set.");
}
else
{
    clLogInfo("EXP","BIT", "Bit 5 is undefined.");
}
Clear a bit of the bitmap 
ClUint32T       bitNum  =   3;
Clear a bit of the bitmap
{
    clLogError("EXP","BIT", "Failed to clear bit number 3.");
    return rc;
}
Get the length of the bitmap 
ClUint32T       bitmapLength  =   0;
if(0 == bitmapLength)
{
    clLogError("EXP","BIT", "Failed to get the bitmap length.");
}
else
{
    clLogInfo("EXP","BIT", "Bitmap length = %d.", bitmapLength);
}
 Get the number of bits set in the bitmap 
ClUint32T   numBitSet  =   0;
{
    clLogError("EXP","BIT", "Failed to get the bitmap length.");
    return rc;
}
else
{
    clLogInfo("EXP","BIT", "Number of bits set in the bitmap = %d.",
               numBitSet);
}
Destroy the Bitmap 
{
    clLogError("EXP","BIT", "Failed to destroy the bitmap.");
    return rc;
}