From 715074845474a02c51d3dfd5645757976ce60d91 Mon Sep 17 00:00:00 2001 From: Josh Nussbaum Date: Mon, 21 Sep 2015 18:55:48 -0400 Subject: [PATCH] Update readme --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c8df627..964d027 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,22 @@ -Ffi +FFI === -** TODO: Add description ** +An easy way to call external functions (e.g. C functions) from Elixir. + +## Example Program + +```elixir +defmodule MyLib do + use FFI.Library + + ffi_lib "c" + + attach_function :puts, [:string], :int +end + +MyLib.puts(["Hello world"]) +``` + +## License + +MIT