--- mqtt/example/Attic/test_declen.c 2011/11/07 13:34:06 1.1.2.1 +++ mqtt/example/Attic/test_declen.c 2011/11/07 13:58:27 1.1.2.2 @@ -8,6 +8,7 @@ main(int argc, char **argv) { unsigned int x; unsigned char *p = (unsigned char*) &x; + char s; if (argc < 2) return 1; @@ -15,8 +16,8 @@ main(int argc, char **argv) x = strtol(argv[1], NULL, 0); printf("decode:: (wire)-> %02x %02x %02x %02x ", p[0], p[1], p[2], p[3]); - x = mqtt_decodeLen(x); - printf("length is x=%u\n", x); + x = mqtt_decodeLen(x, &s); + printf("length is x=%u sizeof=%d\n", x, s); return 0; }