Slapi_Isbitset_Uchar(); Slapi_Setbit_Int() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Manipulating Bits

slapi_isbitset_uchar()

Checks whether a particular bit is set in the specified character.
Syntax
#include "slapi-plugin.h"
int slapi_isbitset_uchar(unsigned char f,unsigned char bitnum);
Parameters
This function takes the following parameters:
f
bitnum
Returns
This function returns one of the following values:
1
0
See Also
slapi_setbit_uchar()
slapi_unsetbit_uchar()

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:
f
bitnum
552
Netscape Directory Server Plug-in Programmer's Guide • October 2004
The unsigned character, a bit of which is to be checked.
The bit number in the unsigned character that needs to be
checked.
if the specified bit is set.
if the specified bit is not set.
The integer in which a bit is to be set.
The bit number that needs to be set in the integer.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents