test_bit

MudOSa4DGD/doc/efun/bitstrings/test_bit · 532 B

From the archive MudOSa4DGD-30.06.98.tar.gz

Download the archive   « Back to the archive contents

NAME
	test_bit - test a bit in a bitstring

SYNOPSIS
	int test_bit(string str, int b)


DESCRIPTION
	Return the status of bit b in bitstring str. The default status of
	a bit is 0.

        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