version 1.1, 2012/01/26 14:45:02
|
version 1.2, 2012/06/20 15:02:23
|
Line 0
|
Line 1
|
|
#include <stdio.h> |
|
#include <string.h> |
|
#include <aitmqtt.h> |
|
|
|
int |
|
main(int argc, char **argv) |
|
{ |
|
int len; |
|
char blah[BUFSIZ] = { 0 }; |
|
|
|
if (argc < 2) |
|
return 1; |
|
|
|
len = strlen(argv[1]); |
|
printf("input=%s %d\n", argv[1], len); |
|
|
|
len = mqtt_expandTopic(argv[1], blah, sizeof blah, 1, 0); |
|
|
|
printf("regex)result=%s ret=%d\n", blah, len); |
|
|
|
len = mqtt_sqlTopic(argv[1], blah, sizeof blah); |
|
|
|
printf("sql)result=%s ret=%d\n", blah, len); |
|
return 0; |
|
} |