From: Jianzhou Zhao <jianzhou@seas.upenn.edu>
To: caml-list@yquem.inria.fr
Subject: How to pass C pointers to Caml
Date: Sun, 28 Feb 2010 22:55:00 -0500 [thread overview]
Message-ID: <9dfe358d1002281955k4cb9207bi4afe5d649fc20e05@mail.gmail.com> (raw)
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
next reply other threads:[~2010-03-01 3:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-01 3:55 Jianzhou Zhao [this message]
2010-03-01 6:22 ` [Caml-list] " Florent Monnier
2010-03-01 13:23 ` Jianzhou Zhao
2010-03-01 13:24 ` Goswin von Brederlow
2010-03-01 23:04 ` Florent Monnier
2010-03-02 10:19 ` Goswin von Brederlow
2010-03-02 11:34 ` Florent Monnier
2010-03-03 11:02 ` Goswin von Brederlow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9dfe358d1002281955k4cb9207bi4afe5d649fc20e05@mail.gmail.com \
--to=jianzhou@seas.upenn.edu \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox