set_bit.html

final_realms_fluffos_v1/lib/doc/man/html/efuns/strings/set_bit.html · 943 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

<HEAD> <TITLE> set_bit - set a bit in a bitstring </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> set_bit - set a bit in a bitstring </H1> </center>
<p>
<b> string set_bit( string str, int n ); </b>
<p>
Return the new string where bit 'n' is set in string 'str'. Note that
the old string 'str' is not modified.
<p>
The maximum value of 'n' is limited by the value of the 'maximum bits in a
bitfield' entry in the driver config file.
<p>
The new string will automatically be extended if needed.
<p>
Bits are packed 6 per byte in printable strings.
<p>
See also:
<A HREF=clear_bit.html>  clear_bit </A>,
<A HREF=test_bit.html>  test_bit </A>
<p>
<HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim>  Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/">  Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>

Site Stats

Snippets: 1791
Codebases: 571