|
|
| version 1.1.1.1, 2013/01/17 10:05:35 | version 1.3.108.1, 2024/04/15 10:17:49 |
|---|---|
| Line 4 | Line 4 |
| * | * |
| */ | */ |
| #include <stdio.h> | #include <stdio.h> |
| #include <stdlib.h> | |
| #include <string.h> | #include <string.h> |
| #include <elwix.h> | #include <elwix.h> |
| Line 53 makevars() | Line 54 makevars() |
| printf("Variable is u32=%u\n", AIT_GET_U32(v)); | printf("Variable is u32=%u\n", AIT_GET_U32(v)); |
| ait_freeVar(&v); | ait_freeVar(&v); |
| v = ait_makeVar(u64, 0xffeedccfedecaa01LL); | v = ait_makeVar(u64, 0xffeedccfedecaa01LL); |
| printf("Variable is u64=%llu\n", AIT_GET_U64(v)); | printf("Variable is u64=%lu\n", AIT_GET_U64(v)); |
| ait_freeVar(&v); | ait_freeVar(&v); |
| v = ait_makeVar(i8, -1); | v = ait_makeVar(i8, -1); |
| printf("Variable is i8=%hhd\n", AIT_GET_I8(v)); | printf("Variable is i8=%hhd\n", AIT_GET_I8(v)); |
| Line 65 makevars() | Line 66 makevars() |
| printf("Variable is i32=%d\n", AIT_GET_I32(v)); | printf("Variable is i32=%d\n", AIT_GET_I32(v)); |
| ait_freeVar(&v); | ait_freeVar(&v); |
| v = ait_makeVar(i64, -123234200000342LL); | v = ait_makeVar(i64, -123234200000342LL); |
| printf("Variable is i64=%lld\n", AIT_GET_I64(v)); | printf("Variable is i64=%ld\n", AIT_GET_I64(v)); |
| ait_freeVar(&v); | ait_freeVar(&v); |
| } | } |
| Line 121 main(int argc, char **argv) | Line 122 main(int argc, char **argv) |
| AIT_KEY(v) = atoi(argv[i * 2 + 1]); | AIT_KEY(v) = atoi(argv[i * 2 + 1]); |
| AIT_SET_STR(v, argv[i * 2 + 2]); | AIT_SET_STR(v, argv[i * 2 + 2]); |
| } | } |
| printf("Reside %zu bytes into variables array\n", ait_resideVars(arr)); | |
| v = ait_findKeyVars(arr, 7); | v = ait_findKeyVars(arr, 7); |
| printf("v=%p\n", v); | printf("v=%p\n", v); |