FlagBitsToString Function

Converts a bit string to a string of flag characters.

int FlagBitsToString(const int bits, char[] flags, const int maxSize)

Parameters

const int bits

Bit string containing the flags.

char[] flags

Output array to write a string of flag characters.

const int maxSize

Maximum size of the string array.

Return Value

Number of flag characters written.