[swift-users] How to create an uninitialized pointer in Swift 3

Lane Schwartz dowobeha at gmail.com
Thu Sep 15 16:38:22 CDT 2016


In Swift 2.2, I could do the following:

var cublasHandle : COpaquePointer = nil
let status = cublasCreate_v2(&cublasHandle)

Where cublasCreate_v2 is a C function that takes a pointer, and then
initializes some memory at that address.

I haven't been able to figure out an equivalent in Swift 3. Any
suggestions, especially to documentation, would be greatly appreciated.

Thanks,
Lane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160915/a4ae2047/attachment.html>


More information about the swift-users mailing list