# Calling a C program from Swift

**URL:** <https://forums.kodeco.com/t/calling-a-c-program-from-swift/27008>\
**Category:** macOS\
**Created:** [March 8, 2017, 12:03pm UTC](https://forums.kodeco.com/t/calling-a-c-program-from-swift/27008 "2017-03-08T12:03:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![proftc](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/proftc/32/59581_2.png) [@proftc](https://forums.kodeco.com/u/proftc)\
**Post date:** [March 8, 2017, 12:03pm UTC](https://forums.kodeco.com/t/calling-a-c-program-from-swift/27008/1 "2017-03-08T12:03:05Z")

</div>

Hi  
I’m looking for some instructions on how to call a C program from Swift in OSX - is there a detailed tutorial on how to do that  
Thanks

---

<div class="post-metadata">

**Author:** ![aeberbach](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/aeberbach/32/81494_2.png) [@aeberbach](https://forums.kodeco.com/u/aeberbach)\
**Post date:** [March 9, 2017, 1:30am UTC](https://forums.kodeco.com/t/calling-a-c-program-from-swift/27008/2 "2017-03-09T01:30:29Z")

</div>

I think [this article](https://spin.atomicobject.com/2015/02/23/c-libraries-swift/) might help you out. Unfortunately it’s not from this site but looks like a lot of people are using it with success.

---

<div class="post-metadata">

**Author:** ![jay005](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jay005/32/67646_2.png) [@jay005](https://forums.kodeco.com/u/jay005)\
**Post date:** [March 9, 2017, 5:06am UTC](https://forums.kodeco.com/t/calling-a-c-program-from-swift/27008/3 "2017-03-09T05:06:48Z")

</div>

@proftc ,  
I Hope That This Given Links May Guid You Better…

1. 

> <https://stackoverflow.com/questions/24004732/how-to-call-c-from-swift>

1. 

[https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithCAPIs.html](https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithCAPIs.html)

1. 

> **[Using a C library inside a Swift framework](https://medium.com/swift-and-ios-writing/using-a-c-library-inside-a-swift-framework-d041d7b701d9#.kv6kj5a5q)**
>
> A brief tutorial

1. 

[https://akrabat.com/using-a-c-library-in-swift/](https://akrabat.com/using-a-c-library-in-swift/)
