日期:2014-05-16 浏览次数:20336 次
JNIEXPORT jstring JNICALLJava_Test_TestString( JNIEnv *env, jobject obj ){char *buf = (char*)malloc(10);strcpy(buf, "Testing 1");jstring jstrBuf = (*env)->NewStringUTF(env, buf);}