Skip to content

Instantly share code, notes, and snippets.

View CStringArray.swift
/*
Creates an array of C-strings that can be passed to C functions and automatically deallocated
Copyright 2020 Robert Salesas
*/
public struct CStringArray {
public let pointer: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>
public let count: Int
private var data: Data