init(cString:encoding:)
Produces a string by copying the null-terminated bytes in a given C array, interpreted according to a given encoding.
Declaration
init?(cString: UnsafePointer<CChar>, encoding enc: String.Encoding)Produces a string by copying the null-terminated bytes in a given C array, interpreted according to a given encoding.
init?(cString: UnsafePointer<CChar>, encoding enc: String.Encoding)