withCString(_:)
For backwards compatibility only. This function is equivalent to the preferred withPlatformString.
Declaration
func withCString<Result>(_ body: (UnsafePointer<CChar>) throws -> Result) rethrows -> ResultFor backwards compatibility only. This function is equivalent to the preferred withPlatformString.
func withCString<Result>(_ body: (UnsafePointer<CChar>) throws -> Result) rethrows -> Result