Annotation of mqtt/example/test_declen.c, revision 1.1.2.1

1.1.2.1 ! misho       1: #include <stdio.h>
        !             2: #include <stdlib.h>
        !             3: #include <netinet/in.h>
        !             4: #include "aitmqtt.h"
        !             5: 
        !             6: int
        !             7: main(int argc, char **argv)
        !             8: {
        !             9:        unsigned int x;
        !            10:        unsigned char *p = (unsigned char*) &x;
        !            11: 
        !            12:        if (argc < 2)
        !            13:                return 1;
        !            14:        else
        !            15:                x = strtol(argv[1], NULL, 0);
        !            16: 
        !            17:        printf("decode:: (wire)-> %02x %02x %02x %02x ", p[0], p[1], p[2], p[3]);
        !            18:        x = mqtt_decodeLen(x);
        !            19:        printf("length is x=%u\n", x);
        !            20: 
        !            21:        return 0;
        !            22: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>