Demo entry 6342289

py

   

Submitted by lu on Jan 06, 2017 at 08:10
Language: Python. Code size: 280 Bytes.

int a = 0xffffffff;
int b = 0;
ret = kv_setint("hello_int", a);
if (ret < 0) {
    printf("setint falied\n");
}
ret = kv_getint("hello_int", &b);
if (ret < 0) {
    printf("getint falied\n");
}
if(a == b){
    printf("verify kv_setint successful, a = b = %d\n", b);	
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).