jniutf.c: New file.

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
This commit is contained in:
Tom Fitzsimmons 2003-11-14 01:43:14 +00:00 committed by Tom Tromey
parent 83913cb559
commit d794fb9fbc
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,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);
}