Diff for /libaitcfg/example/test.c between versions 1.1.2.6 and 1.1.2.7

version 1.1.2.6, 2012/04/02 16:11:13 version 1.1.2.7, 2012/04/02 16:12:39
Line 31  int main() Line 31  int main()
         printf("SetAttribute=%d\n", cfg_setAttribute(&lst, "section", "attr3", NULL));          printf("SetAttribute=%d\n", cfg_setAttribute(&lst, "section", "attr3", NULL));
         printf("LoadValue=%d :: ", cfg_loadAttribute(&lst, "section", "attr3", &v, "iH"));          printf("LoadValue=%d :: ", cfg_loadAttribute(&lst, "section", "attr3", &v, "iH"));
         printf("Str=%s\n", AIT_GET_STR(&v));          printf("Str=%s\n", AIT_GET_STR(&v));
           AIT_FREE_VAL(&v);
         printf("LoadValue=%d :: ", cfg_loadAttribute(&lst, "", "testattr", &v, "iH2"));          printf("LoadValue=%d :: ", cfg_loadAttribute(&lst, "", "testattr", &v, "iH2"));
         printf("Str=%s\n", AIT_GET_STR(&v));          printf("Str=%s\n", AIT_GET_STR(&v));
           AIT_FREE_VAL(&v);
   
         printf("GetAttribute value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest"));          printf("GetAttribute value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest"));
   

Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>