Quantcast

Output string arguments

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Output string arguments

James Dickson
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.
Loading...