#include #include int main(int argc, char **argv) { char *str, szStr[BUFSIZ]; if (argc < 2) { printf("Syntax: %s \n", argv[0]); return 1; } str = ioStrAst(argv[1]); if (!str) { printf("#%d - %s\n", io_GetErrno(), io_GetError()); return 1; } printf(">>> %s\n", str); if (io_AV2Path(NULL, "test_av", str, 0, 0) == -1) { printf("#%d - %s\n", io_GetErrno(), io_GetError()); free(str); return 2; } if (io_AV2Path(NULL, "test_av", str, 42, 0) == -1) { printf("#%d - %s\n", io_GetErrno(), io_GetError()); free(str); return 3; } free(str); if (io_Path2AV(NULL, "test_av", szStr, sizeof szStr, 0) == -1) { printf("#%d - %s\n", io_GetErrno(), io_GetError()); return 4; } else printf(">>> %s\n", szStr); if (io_Path2AV(NULL, "test_av", szStr, sizeof szStr, 42) == -1) { printf("#%d - %s\n", io_GetErrno(), io_GetError()); return 5; } else printf(">>> %s\n", szStr); return 0; }