corda/classpath/java/lang/System.cpp

14 lines
300 B
C++
Raw Normal View History

2007-06-25 01:34:07 +00:00
#include "stdio.h"
#include "jni.h"
extern "C" JNIEXPORT void JNICALL
Java_java_lang_System_Output_println(JNIEnv* e, jobject, jstring s)
{
jboolean isCopy;
const char* chars = e->GetStringUTFChars(s, &isCopy);
if (chars) {
printf("%s", chars);
}
e->ReleaseStringUTFChars(s, chars);
}