Type Method 型メソッド

stringWithCString:length:

Returns a string containing the characters in a given C-string. 与えられたC文字列の中の文字を含んでいる文字列を返します。

Declaration 宣言

+ (id)stringWithCString:(const char *)bytes 
                 length:(NSUInteger)length;

Discussion 議論

cString must not be NULL. cString should contain characters in the default C-string encoding. This method converts length * sizeof(char) bytes from cString and doesn’t stop short at a NULL character. cStringは、NULLでなければなりません。cStringは、省略時のC文字列符号化での文字を含むべきです。このメソッドは、length * sizeof(char)バイトをcStringから変換します、そしてNULL文字で立ち止まりません。

See Also 参照

Deprecated 非推奨

Related Documentation 関連文書