Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README
factorial.c
factorial.js

README

To compile `libfactorial.dylib` on OS X:

    $ gcc -dynamiclib -undefined suppress -flat_namespace factorial.c -o libfactorial.dylib

To compile `libfactorial.so` on Linux/Solaris/etc.:

    $ gcc -shared -fpic factorial.c -o libfactorial.so

To run the example:

    $ node factorial.js 35
    Your output: 6399018521010896896
Something went wrong with that request. Please try again.