根据 swift 与 C 语言的语法规则,参见:
http://c.biancheng.net/cpp/html/2282.html
进行了一些尝试:
1.C语言中创建:test(char testpara)
Swift 中调用 test(testChar: CChar) ---- CChar 实际为 Int8 类型
2.C语言中创建:test(char* testpara)
Swift 中调用 test(testChar: UnsafeMutablePointer<Int8>) ------ 必须用 Int8 不能用 CChar
3.C语言中创建:test(char** testpara)
Swift 中调用 test(testChar: UnsafeMutablePointer<UnsafeMutablePointer<Int8>>)
4.swift读取指针的实际内存值
testpara.memory
参见:http://swifter.tips/unsafe/