ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/doc/efuns/set_bit

HOME :: doc :: efuns :: set_bit

     sssseeeetttt____bbbbiiiitttt((((3333))))             MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))              sssseeeetttt____bbbbiiiitttt((((3333))))

     NNNNAAAAMMMMEEEE
          set_bit() - set a bit in a bitstring

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          string set_bit( string str, int n );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          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.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          clear_bit(3), test_bit(3)

     Page 1                                          (printed 3/16/95)

HOME :: doc :: efuns :: set_bit