set_bit

mud/2.4.5/doc/efun/set_bit · 392 B

From the archive 2.4.5-for-1.1.tgz

Download the archive   « Back to the archive contents

string set_bit(str, n)
string str;
int n;

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
now the maximum value.

The new string will automatically be extended if needed.

Bits are packed 6 per byte in printable strings.

See also efun/clear_bit efun/test_bit

Site Stats

Snippets: 1791
Codebases: 571