mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 03:49:03 +08:00
13 lines
288 B
C
13 lines
288 B
C
|
#include <stdlib.h>
|
||
|
|
||
|
#include <findclass.h>
|
||
|
|
||
|
jclass
|
||
|
Java_findclass_doit (JNIEnv *env, jclass klass, jstring name)
|
||
|
{
|
||
|
const char *buf = (*env)->GetStringUTFChars (env, name, NULL);
|
||
|
jclass k = (*env)->FindClass (env, buf);
|
||
|
(*env)->ReleaseStringUTFChars (env, name, buf);
|
||
|
return k;
|
||
|
}
|