Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] Matching when
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-05 (20:16)
From: Michael Tucker <mtucker@e...>
Subject: [Caml-list] Sharing Files between OCaml and C

  I would like to share access to a file between a C function and an OCaml
function in an application put together with CamlIDL. If I have a C
function with prototype:

int manip_file(FILE* f, int x);

  Is there any support in CamlIDL for passing a file that was opened in
OCaml. I checked the archives, and found a message that described pulling
out the integer file descriptor, and passing that to fdopen on the C side,
but that was it -- the same message asked about better support from
CamlIDL (this was winter 2000), but I couldn't find a response. Has this
changed over the past year and a half, or is that the best method?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: