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
GC with C issues
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-03 (11:16)
From: ronniec95@l...
Subject: Re: [Caml-list] GC with C issues
Thank you, that did the trick.

Yeah I know about the strcpy issue....but I chose to ignore it in this
test program. In this particular case, the objective is to help me be
comfortable with callbacks and the GC which is not quite working as


On Thu, Feb 03, 2005 at 12:06:03PM +0100, Daniel B?nzli wrote:
> When you use CAMLparam and CAMLlocal macros you must return from your C 
> functions with CAMLreturn.
> Also, beware of your use of strcpy with String_val(aString) according 
> to the documention caml strings can contain embedded null characters.
> Daniel