Annulleret

Help in JAVA and JNI and C language

Dears ,

I have a small task , I have c code that define JNI . the java will call the header

the c code is :

JNIEXPORT jstring JNICALL

JNICALL Java_project_projectNative_getdata

(JNIEnv *env, jobject, jstring password)

{

// example format , unsigned char pin[] = {0x31, 0x31, 0x31, 0x31};

....

...

..

}

what I want is just a code that receive the jstring Password and assign the value of it to unsigned char pin[] as hex

the input of password is String and it will be like this "1,1,1,1"

it should be converted to unsigned char : {0x31, 0x31, 0x31, 0x31}

Thanks

Færdigheder: C programmering, Java

Se mere: java jni unsigned char, java programming help, hex programming, define programming language, define programming, string programming, programming string, programming example, programming define, programming char, code java programming, char programming, jni language, the c, java small, input pin code, java code example, java code help, code example java, want pin, task help, java format, task java, call code java, java string

Om arbejdsgiveren:
( 3 bedømmelser ) riyadh, Saudi Arabia

Projekt-ID: #993800

2 freelancere byder i gennemsnit $40 for dette job

AshwinSen

Hello, Please view PMB. Ashwin

$50 USD in 2 dage
(40 bedømmelser)
5.7
deadhunt

Please check PMB.

$30 USD in 2 dage
(65 bedømmelser)
5.6