Creates a string from the null-terminated, UTF-8 encoded sequence of bytes at the given pointer.
Required.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
init(cString nullTerminatedUTF8: Unsafe Pointer<CChar>)
Parameters
nullTerminatedUTF8
A pointer to a sequence of contiguous, UTF-8 encoded bytes ending just before the first zero byte.