set_bit(3) MudOS v21c2 (5 Sep
1994)
名稱:
set_bit() - 設定一個位元字串 (bitstring) 中的一個位元 (bit).
語法:
string set_bit( string str, int n );
字串 set_bit( 字串 str, 整數 n );
用法:
傳回一個新的字串, 新字串將 str 中的第 n 位元設定為 1. 請注意, 原來的字串
str 並沒有更動內容.
n 的最大值有其上限. 如果您想知道這個上限值, 請向機器的管理者詢問.
如果有必要, 新的字串會自動加長.
在可以印出的字串中, 每一個位元組 (byte) 含有 6 個位元.
參考:
翻譯:
Spock @ FF 97.Jul.20. (printed 3/16/95)
回到上一頁