Retro68/gcc/libjava/testsuite/libjava.jni/jniutf.c
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

11 lines
236 B
C

#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);
}