45e19362d129a2bc0b206b3c32adccec7ac150e2
FFI
An easy way to call external functions (e.g. C functions) from Elixir.
Inspired by Ruby's FFI
** This is alpha software **
Example Program
defmodule MyLib do
use FFI.Library
ffi_lib "libstdc++.so.6"
attach_function :puts, [:string], :int
end
MyLib.puts(["Hello World from C stdlib"])
Installation
hub clone joshnuss/elixir-ffi
cd elixir-ffi
make
Running Examples
mix run examples/basic.exs
License
MIT
Languages
Elixir
52.4%
C
42.9%
Makefile
4.7%