# How to define a Julia function from C?

**URL:** <https://discourse.julialang.org/t/how-to-define-a-julia-function-from-c/2566>\
**Category:** General Usage\
**Tags:** embedding\
**Created:** [March 9, 2017, 4:14pm UTC](https://discourse.julialang.org/t/how-to-define-a-julia-function-from-c/2566 "2017-03-09T16:14:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![izaid](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@izaid](https://discourse.julialang.org/u/izaid)\
**Post date:** [March 9, 2017, 6:52pm UTC](https://discourse.julialang.org/t/how-to-define-a-julia-function-from-c/2566/7 "2017-03-09T18:52:56Z")

</div>

yuyichao and ihnorton got it exactly – maybe it’s because I’m used to Python but, yeah, I was looking for the equivalent of PyMethodDef. interpreter.c is a good place to look, thanks for that – but I’ll see if I can do something with ccall.

Thanks!

Irwin

---

_[View the full topic](https://discourse.julialang.org/t/how-to-define-a-julia-function-from-c/2566)._
