5 void printAndFreeStrings(const char * strings
)
7 const char * ptr
= strings
;
17 int main(int argc
, char* argv
[])
20 xdgHandle handle
= xdgAllocHandle();
21 if (!handle
) return 1;
25 printf("xdgDataFind:\n");
26 printAndFreeStrings(xdgDataFind(argv
[1], handle
));
27 printf("xdgConfigFind:\n");
28 printAndFreeStrings(xdgConfigFind(argv
[1], handle
));
32 if (strcmp(argv
[1], "--data") == 0)
33 printAndFreeStrings(xdgDataFind(argv
[2], handle
));
34 else if (strcmp(argv
[1], "--config") == 0)
35 printAndFreeStrings(xdgConfigFind(argv
[2], handle
));