ocaml/test/dynlink/stub1.c

12 lines
207 B
C
Raw Normal View History

#include "caml/mlvalues.h"
#include "caml/memory.h"
#include "caml/alloc.h"
#include <stdio.h>
value stub1() {
CAMLlocal1(x);
printf("This is stub1!\n");
x = caml_copy_string("ABCDEF");
return x;
}