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

1.1.2.1 ! misho       1: #include <stdio.h>
        !             2: #include <stdlib.h>
        !             3: #include <string.h>
        !             4: #include <sys/types.h>
        !             5: #include "aitmqtt.h"
        !             6: 
        !             7: 
        !             8: int
        !             9: main(int argc, char **argv)
        !            10: {
        !            11:        mqtthdr_var_t *v;
        !            12: 
        !            13:        if (argc < 2)
        !            14:                return 1;
        !            15: 
        !            16:        v = mqtt_str2var((u_char*) argv[1], strlen(argv[1]) + 1);
        !            17:        printf("msb=%hhd lsb=%hhd val=%hd %s\n", 
        !            18:                        v->var_sb.sb.m, v->var_sb.sb.l, v->var_sb.val, v->var_data);
        !            19:        free(v);
        !            20: 
        !            21:        return 0;
        !            22: }

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