set_bit

skylib_fluffos_v3/mudlib/doc/driver/efuns/strings/set_bit · 578 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

.\"set a bit in a bitstring
.DT
set_bit
$MUDNAME$ driver help
set_bit

.SH Name
.SI 5
set_bit() - set a bit in a bitstring
.EI

.SH Synopsis
.SI 5
string set_bit( string str, int n );
.EI

.SH Description
.SP 5 5
Return the new string where bit `n' is set in string `str'.  Note that
the old string `str' is not modified.

The max value of `n' is limited.  Ask the administrator if you want to
know the maximum value.

The new string will automatically be extended if needed.

Bits are packed 6 per byte in printable strings.
.EP

.SH See also
.SI 5
clear_bit(), test_bit()
.EI

Site Stats

Snippets: 1791
Codebases: 571