This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi all, I guess we dont have any forum particularly for JNI... thats y posting the porblem here... whats the difference between passing a jstring from a java program to 'c' method AND using scanf from within the 'c' code to read the string from java execution environment... somewhat like done in the following 'c' method..... here jstring 'str' is passed from a java method AND another string is read from the command prompt using scanf("%s", buf) why in the first case we require conversion from unicode to UTF8 and not in the second case ....
Originally posted by amit shukla: Hi all, I guess we dont have any forum particularly for JNI... thats y posting the porblem here... whats the difference between passing a jstring from a java program to 'c' method AND using scanf from within the 'c' code to read the string from java execution environment... somewhat like done in the following 'c' method..... here jstring 'str' is passed from a java method AND another string is read from the command prompt using scanf("%s", buf) why in the first case we require conversion from unicode to UTF8 and not in the second case ....