1

I want to pass following Swift String array:

let array: [String] = ["aaa","bbb","ccc"]

to this C function:

void printStringArray(char*[] arr) {
    /* ... */
}
Paulo Mattos
  • 18,845
  • 10
  • 77
  • 85
Chandan
  • 747
  • 7
  • 17
  • This should be what you are looking for: https://stackoverflow.com/questions/38275377/swift-convert-a-string-array-to-a-to-a-c-string-array-pointer – Martin R Oct 17 '17 at 11:59
  • Possible duplicate of https://stackoverflow.com/questions/29469158/how-to-pass-an-array-of-swift-strings-to-a-c-function-taking-a-char-parameter – Vini App Oct 17 '17 at 19:00

0 Answers0