summaryrefslogtreecommitdiffstats
path: root/ocamlbuild/examples/example_with_C/main.c
blob: c7f6bb5d2a6f5f853ff8c69a60fc444b9e7f0328 (plain)
1
2
3
4
5
6
7
8
9
10
                                                            /* -*- C -*- */
#include <stdio.h>
#include <caml/callback.h>
extern int fib(int);
int main(int argc, char** argv)
{
  caml_startup(argv);
  printf("fib(12) = %d\n", fib(12));
  return 0;
}