I have passed a URL string from Java to C code as jstring
data type through the use of JNI. And my library method needs a char *
as url.
How can I convert jstring
in char *
?
P.S.: Is there any advantage of using jcharArray in C? (i.e. Passing char []
instead of string in native method)