Skip to content

Instantly share code, notes, and snippets.

@JeffreySarnoff
JeffreySarnoff / using_C_in_Julia.jl
Last active March 31, 2022 18:36
using C in Julia
#=
This blog is a “Hello World” example of Julia calling C.
We start of by at bit of C code we want to call from Julia.
We write the following in calc_mean.c
double mean(double a, double b) {
return (a+b) / 2;
}