[swift-users] Checking if an UnsafeMutablePointer is NULL in Swift 3
vinivendra at gmail.com
Tue Jul 5 17:40:09 CDT 2016
Used to be in Swift 2.x I only had to compare an unsafe pointer (obtained from a C API) to nil to know whether or not it was NULL. After conversion to Swift 3, it seems that isn’t allowed anymore.
I remember watching something about it in WWDC but I can’t remember (or find) the solution anymore. Can someone point me in the right direction?
Thanks a bunch :)
More information about the swift-users