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