Is there a way to call C routines from Swift?
A lot of iOS / Apple libraries are C only and I\'d still like to be able to call those.
For example, I\'d like
The compiler converts C API to Swift just like it does for Objective-C.
import Cocoa let frame = CGRect(x: 10, y: 10, width: 100, height: 100) import Darwin for _ in 1..10 { println(rand() % 100) }
See Interacting with Objective-C APIs in the docs.