Diff for /mqtt/example/Attic/test_declen.c between versions 1.1 and 1.1.2.1

version 1.1, 2011/11/07 13:34:05 version 1.1.2.1, 2011/11/07 13:34:06
Line 0 Line 1
   #include <stdio.h>
   #include <stdlib.h>
   #include <netinet/in.h>
   #include "aitmqtt.h"
   
   int
   main(int argc, char **argv)
   {
           unsigned int x;
           unsigned char *p = (unsigned char*) &x;
   
           if (argc < 2)
                   return 1;
           else
                   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);
   
           return 0;
   }

Removed from v.1.1  
changed lines
  Added in v.1.1.2.1


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