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:

f
The character in which a bit is to be set.
bitnum
The bit number that needs to be set in the character.
Returns

This function returns the character with the specified bit set.