Return to exptop.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / libaitmqtt / example |
version 1.1, 2012/01/26 14:45:02 | version 1.1.2.1, 2012/01/26 14:45:02 |
---|---|
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, 1); | |
printf("result=%s ret=%d\n", blah, len); | |
return 0; | |
} |