Login  Register

Output string arguments

Posted by James Dickson on Jun 08, 2012; 4:54pm
URL: https://forum.jogamp.org/Output-string-arguments-tp4025173.html

Hi Folks,

I have a C function that I want to call which has a signature similar to the standard strncpy function without the return value, e.g.:

   void abc( char* dest, const char* src, size_t n );


The "ArgumentIsString 0 1" is in my configuration file and the Java code generated passes the arguments as string, but while the argument is modified (as can be seen in a printf in the JNI code) the Java code does not see the modification (probably because it's missing a NewStringUTF call?)

Is there a way to tell GlueGen that an argument is an output string argument?


Regards,

Jamie.