--- libaitcfg/example/test.c 2012/08/06 14:53:34 1.3 +++ libaitcfg/example/test.c 2013/06/06 08:20:18 1.3.8.2 @@ -37,7 +37,8 @@ int main() printf("Str=%s\n", AIT_GET_STR(&v)); AIT_FREE_VAL(&v); - printf("GetAttribute value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest")); + printf("GetAttribute multi-lines value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest")); + printf("GetAttribute multi-lines w/o \\ value=%s\n", cfg_getAttribute(&lst, "section1", "attrtest_1")); cfgUnloadConfig(&lst); printf("0) ---------------------------------\n"); @@ -80,6 +81,10 @@ int main() printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "global", "gniah", "tiiiiiii")); printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, NULL, "att", "0001122777777")); printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "gruh", "shmink", "ohoboho")); + printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "gruh", "shmink", "ohoboho1")); + printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "gruh", "shmink", "ohoboho2")); + printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "global", "piuk", "blahz1")); + printf("tmp: SetAttribute=%d\n", cfg_setAttribute(&tmp, "global", "piuk", "blahz2")); #ifndef SKIP_TEST_MERGE printf("before_merge ---------------------------------\n");