Annotation of libaitmqtt/example/exptop.c, revision 1.1.2.3
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:
1.1.2.2 misho 17: len = mqtt_expandTopic(argv[1], blah, sizeof blah, 1, 0);
1.1.2.1 misho 18:
1.1.2.3 ! misho 19: printf("regex)result=%s ret=%d\n", blah, len);
! 20:
! 21: len = mqtt_sqlTopic(argv[1], blah, sizeof blah);
! 22:
! 23: printf("sql)result=%s ret=%d\n", blah, len);
1.1.2.1 misho 24: return 0;
25: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>