Initializes the receiver, a newly allocated
NSString object, by converting the data in a given C-string from the default C-string encoding into the Unicode character encoding.
- iOS 2.0–2.0Deprecated
- macOS 10.0–10.4Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
This method converts
sizeof(char) bytes from
c and doesn’t stop short at a zero character.
c must contain bytes in the default C-string encoding and may not be
NULL. Returns an initialized object, which might be different from the original receiver.