set_bit

MudOSa4DGD/doc/efun/bitstrings/set_bit · 600 B

From the archive MudOSa4DGD-30.06.98.tar.gz

Download the archive   « Back to the archive contents

NAME
	set_bit - set a bit in a bitstring

SYNOPSIS
	string set_bit(string str, int b)


DESCRIPTION
	Set the bit b in bitstring str and returns the new bitstring.
	The length of the bitstring will dynamically increase if 
	nescessary.

        Config.h must define MUDOS_BITSTRING for bitstring functions to
        exist.

ERROR
        If b < 0 an error will occur. The resulting bitstring must also be
        smaller than MAX_STRING_SIZE.

NOTE
	Bitstrings are currently on byte level. This may change in the
	future, so do NOT make ANY assumptions on bitstring data.

SEE ALSO
	efun/bitstrings/

Site Stats

Snippets: 1791
Codebases: 571