summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.jni/jniutf.c
blob: 1ccc7ea938d1bf4b49e7aca36fa3a5137d7a6c75 (plain)
1
2
3
4
5
6
7
8
9
10
#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);
}