Hello,
I'm trying to utilize the below C function, charArray in Java using SWIG, but it looks like I'm not able to get all of the C Array element's data. If I change the C function to use just a single digit or letter then its fine. Anyone see any issues with my implementation?
inline char *charArray(){static char foo[3];foo[0]='ABC';foo[1]='5CDE';foo[2]='EEE6';return foo;}
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
I'm not so good with advice...can I interest you in a sarcastic comment?
public static SWIGTYPE_p_p_char charArray() {
long cPtr = TestJNI.charArray();
return (cPtr == 0) ? null : new SWIGTYPE_p_p_char(cPtr, false);
}
public static char char_array_getitem(String ary, int index) {
return TestJNI.char_array_getitem(ary, index);
}
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Swig-user mailing list
Swig...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user