File: fibwrap.c

package info (click to toggle)
ocaml-doc 3.10-1
  • links: PTS, VCS
  • area: non-free
  • in suites: lenny
  • size: 7,476 kB
  • ctags: 2,644
  • sloc: ml: 325; sh: 64; makefile: 34; ansic: 15
file content (7 lines) | stat: -rw-r--r-- 220 bytes parent folder | download
1
2
3
4
5
6
7
                                                            /* -*- C -*- */
#include <caml/mlvalues.h>
#include <caml/callback.h>
int fib(int n)
{
  return Int_val(caml_callback(*caml_named_value("fib"), Val_int(n)));
}