string(withCString:)
Creates a new string using a given C-string.
Declaration
class func string(withCString bytes: UnsafePointer<CChar>) -> Any?Discussion
cString should contain data in the default C string encoding. If the argument passed to string(withCString:) is not a zero-terminated C-string, the results are undefined.
See Also
Deprecated
init(CString:)string(withCString:length:)init(CString:length:)init(CStringNoCopy:length:freeWhenDone:)string(withContentsOfFile:)init(contentsOfFile:)string(withContentsOf:)init(contentsOfURL:)write(toFile:atomically:)write(to:atomically:)getCharacters(_:)cString()lossyCString()cStringLength()getCString(_:)