Retro68/gcc/libjava/testsuite/libjava.jni/jniutf.c

11 lines
236 B
C
Raw Normal View History

2012-03-27 23:13:14 +00:00
#include <jniutf.h>
JNIEXPORT void JNICALL
Java_jniutf_printString (JNIEnv *env, jobject obj, jstring str)
{
const char *cstr;
cstr = (*env)->GetStringUTFChars (env, str, NULL);
(*env)->ReleaseStringUTFChars (env, str, cstr);
}