HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
“slapi_setbit_uchar()”
“slapi_unsetbit_uchar()”
47.3 slapi_setbit_int()
Sets the specified bit in an integer.
Syntax
#include "slapi-plugin.h"
unsigned int slapi_setbit_int(unsigned int f,unsigned int bitnum);
Parameters This function takes the following parameters:
The integer in which a bit is to be set.
f
The bit number that needs to be set in the integer.
bitnum
Returns This function returns the integer with the specified bit set.
See also
“slapi_isbitset_int()”
“slapi_unsetbit_int()”
47.4 slapi_setbit_uchar()
Sets the specified bit in a character.
Syntax
#include "slapi-plugin.h"
unsigned char slapi_setbit_uchar(unsigned char f, unsigned char bitnum);
Parameters This function takes the following parameters:
The character in which a bit is to be set.
f
The bit number that needs to be set in the character.
bitnum
Returns This function returns the character with the specified bit set.
See also
“slapi_isbitset_uchar()”
“slapi_unsetbit_uchar()”
47.5 slapi_unsetbit_int()
Unsets the specified bit in an integer.
Syntax
#include "slapi-plugin.h"
unsigned int slapi_unsetbit_int(unsigned int f,unsigned int bitnum);
Parameters This function takes the following parameters:
The integer in which a bit is to be unset.
f
The bit number that needs to be unset in the integer.
bitnum
Returns This function returns the integer with the specified bit unset.
See also
366 Functions for manipulating bits