Minar
Minar

Reputation: 483

Using a C file in an xcode/objective-c project

I am making an iPhone app. I have a code that is in C. The C code contains a lot of pointers and global variables. I want to use this C code in my objective-c project. Can anybody please help me with this?

Upvotes: 2

Views: 744

Answers (1)

Jesse Beder
Jesse Beder

Reputation: 34034

Objective-C is a perfect superset of C. Just add the file to your Xcode project like you normally would.

Upvotes: 6

Related Questions