Annotation of libaitmqtt/example/exptop.c, revision 1.1.2.1
1.1.2.1 ! misho 1: #include <stdio.h>
! 2: #include <string.h>
! 3: #include <aitmqtt.h>
! 4:
! 5: int
! 6: main(int argc, char **argv)
! 7: {
! 8: int len;
! 9: char blah[BUFSIZ] = { 0 };
! 10:
! 11: if (argc < 2)
! 12: return 1;
! 13:
! 14: len = strlen(argv[1]);
! 15: printf("input=%s %d\n", argv[1], len);
! 16:
! 17: len = mqtt_expandTopic(argv[1], blah, sizeof blah, 1, 1);
! 18:
! 19: printf("result=%s ret=%d\n", blah, len);
! 20: return 0;
! 21: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>