English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
How to pass C pointers to Caml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-03-01 (03:55)
From: Jianzhou Zhao <jianzhou@s...>
Subject: How to pass C pointers to Caml
I have been calling OCaml code from C in my project.
The C code has some pointers to C structures.
I got 'seg fault' when calling the OCaml function receiving
C structure pointers.

18.7 at http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html
gives the examples that pass int into OCaml. These examples work for me.
But, Does OCaml support to pass C structure pointers to OCaml?

-- 
Jianzhou