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
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: -- (:)
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.