47.2. slapi_isbitset_uchar()

Checks whether a particular bit is set in the specifier character.
Syntax

#include "slapi-plugin.h"
int slapi_isbitset_uchar(unsigned char f,unsigned char bitnum);

Parameters

This function takes the following parameters:

f
The unsigned character, a bit of which is to be checked.
bitnum
The bit number in the unsigned character that needs to be checked.
Returns

This function returns one of the following values:

  • 1 if the specified bit is set.
  • 0 if the specified bit is not set.