jni - Android native "undeclared (first use in this function)" -


i quite new android-ndk. code

const char *incstr = (*env)->getstringutfchars(env, str, null); if (incst && incst[0] != '\0') {     char *outcstr = b64encode(incstr);     return (*env)->newstringutf(env, outcstr); } 

i error

'incst' undeclared (first use in function) if (incst && incst[0] != '\0') { 

what did wrong?

const char *incstr = (*env)->getstringutfchars(env, str, null); if (incst && incst[0] != '\0') { 

you declared incstr tried use incst without r


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -