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:06)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] GC with C issues
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