From: David Brown <caml-list@davidb.org>
To: Jeremy Cowgar <jc@cowgar.com>
Cc: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Returning a file handle from C (fopen)
Date: Tue, 21 Sep 2004 18:14:19 -0600 [thread overview]
Message-ID: <20040922001419.GA24756@tg4.local> (raw)
In-Reply-To: <87k6un5lb7.fsf@jhome.cowgar.com>
On Tue, Sep 21, 2004 at 06:06:20PM -0400, Jeremy Cowgar wrote:
> Greetings,
>
> I am trying to return a file handle from C. A simple Val_long does not
> work, so I did some research and found something like the following:
You could just return the Val_long, and use Unix.out_channel_of_descr in
the ocaml world to get an ocaml channel.
Dave
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-09-22 0:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-21 22:06 Jeremy Cowgar
2004-09-22 0:14 ` David Brown [this message]
2004-09-22 1:20 ` Eric C. Cooper
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=20040922001419.GA24756@tg4.local \
--to=caml-list@davidb.org \
--cc=caml-list@inria.fr \
--cc=jc@cowgar.com \
/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