I want to create a new native method, it returns String:
for example:
public static native String myTest();
I want to get a String, for example, "Hello,world!"
In the nativeemul.c, how write it?
I write "push_word("Hello,world!");", but get a error: Segmentation fault
if I want to get an integer, this code is right. But if I want to get a string, this code is wrong, who can help me? Thanks very much!
