[swift-users] Trouble assigning an array of C pointers to a C struct field

Jens Alfke jens at mooseyard.com
Sun Apr 10 19:55:48 CDT 2016

The rubber-duckie effect strikes again! A few minutes after posting about my problem I figured out the answer:

        withUnsafeMutablePointer(&keyHandles[0]) { keysPtr in
            opt.keys = keysPtr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160410/2400eb32/attachment.html>

More information about the swift-users mailing list