Initial commit

This commit is contained in:
Josh Nussbaum
2015-09-20 19:30:19 -04:00
commit 7f443aa263
9 changed files with 120 additions and 0 deletions

11
examples/basic.exs Normal file
View File

@@ -0,0 +1,11 @@
defmodule MyLib do
use FFI.Library
ffi_lib "c"
attach_function :puts, [:string], :int
end
{:ok, pid} = MyLib.start_link
MyLib.puts(pid, "Hello world")