Version française
Home     About     Download     Resources     Contact us    
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.

Daniel