version 1.2.2.2, 2013/03/19 17:12:52
|
version 1.2.2.3, 2013/03/19 17:14:55
|
Line 48 int main()
|
Line 48 int main()
|
// sess_SetValue(n, "piuk_gniah++", "mryyynnnnn"); |
// sess_SetValue(n, "piuk_gniah++", "mryyynnnnn"); |
printf(">>> String=%s\n", n->sess_addr); |
printf(">>> String=%s\n", n->sess_addr); |
getchar(); |
getchar(); |
printf("12345678 Define? %d\n", ISDEF(sess_GetValue(n, "12345678", &v))); | printf("12345678 Define? %d\n", SESS_RET_DEF(sess_GetValue(n, "12345678", &v))); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf("111 Define? %d\n", ISDEF(sess_SetValue(n, "111", "321"))); | printf("111 Define? %d\n", SESS_RET_DEF(sess_SetValue(n, "111", "321"))); |
printf("88 Define? %d\n", ISDEF(sess_GetValue(n, "88", &v))); | printf("88 Define? %d\n", SESS_RET_DEF(sess_GetValue(n, "88", &v))); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf("222 find=%d value=%s vlen=%d\n", ISDEF(sess_SetValue(n, "222", NULL))); | printf("222 find=%d value=%s vlen=%d\n", SESS_RET_DEF(sess_SetValue(n, "222", NULL))); |
printf("12345678 find=%d value=%s vlen=%d\n", sess_GetValue(n, "12345678", &v), AIT_GET_STR(v)); |
printf("12345678 find=%d value=%s vlen=%d\n", sess_GetValue(n, "12345678", &v), AIT_GET_STR(v)); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf("111 find=%d value=%s vlen=%d\n", sess_GetValue(n, "111", &v), AIT_GET_STR(v)); |
printf("111 find=%d value=%s vlen=%d\n", sess_GetValue(n, "111", &v), AIT_GET_STR(v)); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf("222 find=%d value=%s vlen=%d\n", ISDEF(sess_GetValue(n, "222", &v)), AIT_GET_STR(v)); | printf("222 find=%d value=%s vlen=%d\n", SESS_RET_DEF(sess_GetValue(n, "222", &v)), AIT_GET_STR(v)); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf("000 find=%d value=%s vlen=%d\n", sess_GetValue(n, "000", &v), AIT_GET_STR(v)); |
printf("000 find=%d value=%s vlen=%d\n", sess_GetValue(n, "000", &v), AIT_GET_STR(v)); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf("00 find=%d value=%s vlen=%d\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); |
printf("00 find=%d value=%s vlen=%d\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf("insert Result?%d\n", ISNEW(sess_SetValue(n, "789", "Gniah40"))); | printf("insert Result?%d\n", SESS_RET_NEW(sess_SetValue(n, "789", "Gniah40"))); |
printf("00 find=%d value=%s vlen=%d\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); |
printf("00 find=%d value=%s vlen=%d\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); |
ait_freeVar(&v); |
ait_freeVar(&v); |
printf(">>> String=%s\n", n->sess_addr); |
printf(">>> String=%s\n", n->sess_addr); |