Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (7 sloc) 0.329 kB
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
Jump to Line
Something went wrong with that request. Please try again.