Skip to content

knewter/c_node_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlang C Node Example

This is an effort to show off erlang/c interop. In theory, it was going to encapsulate a C node, but it might just do a port for now...

To see it in action

First, compile the C program and the beamfiles:

rebar compile
rebar compile

NOTE - yes, run it twice for now, because I don't know how to fix a bug in the build process yet...

Next, run an erlang console with erl -pa ebin.

Now call foo/1 and bar/1 on the complex module:

complex:start().
complex:foo(1).
complex:bar(1).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published