Answers for "jstring to char*"

0

jstring to char*

JNIEXPORT void JNICALL Java_ClassName_MethodName(JNIEnv *env, jobject obj, jstring javaString)   
{
   const char *nativeString = env->GetStringUTFChars(javaString, 0);

   // use your string

   env->ReleaseStringUTFChars(javaString, nativeString);
}
Posted by: Guest on March-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language