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