[swift-users] C Pointers and Memory

James Campbell james at supmenow.com
Thu Jul 28 15:27:45 CDT 2016


How are arrays passed to C in Linux ? I tried unwrapping an optional array
in an if statment and passing it to c. it seemed like the array was
deallocated however if I stored it in a local var in the function before
the if statment it worked perfectly fine, sureley this shouldn't work
either ?

*___________________________________*

*James⎥Head of Trolls*

*james at supmenow.com <james at supmenow.com>⎥supmenow.com <http://supmenow.com>*

*Sup*

*Runway East *

*10 Finsbury Square*

*London*

* EC2A 1AF *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160728/f3760646/attachment.html>


More information about the swift-users mailing list