d794fb9fbc
2003-11-13 Tom Fitzsimmons <fitzsim@redhat.com> * libjava.jni/jniutf.c: New file. * libjava.jni/jniutf.java: New file. * libjava.jni/jniutf.out: New file. From-SVN: r73569
11 lines
236 B
C
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);
|
|
}
|