#include #include #include int main(int argc, char **argv) { int ret; char str[256], *s, s0[2][256]; if (argc < 2) { printf("std:: %s ioPromptRead(NULL) -> %d\n", str, ioPromptRead(NULL, NULL, str, 256)); printf("std:: %s ioPromptRead(PIUK> ) -> %d\n", str, (ret = ioPromptRead(NULL, "PIUK> ", str, 256))); printf("geterror:: #%d - %s\n", io_GetErrno(), io_GetError()); printf("std:: %s w/o confirm ioPromptPassword(NULL) -> %d\n", str, ioPromptPassword(NULL, NULL, str, 256, 0)); printf("std:: %s ioPromptPassword(NULL) -> %d\n", str, ioPromptPassword(NULL, NULL, str, 256, 1)); printf("std:: %s w/o confirm ioPromptPassword(PIUK> ) -> %d\n", str, (ret = ioPromptPassword(NULL, "PIUK pass: ", str, 256, 0))); printf("geterror:: #%d - %s\n", io_GetErrno(), io_GetError()); printf("std:: %s ioPromptRead(FLIUP: ) -> %d\n", str, (ret = ioPromptRead(NULL, "FLIUP: ", str, 256))); } else { strlcpy(str, argv[1], sizeof str); printf("%s real filename is %s\n", str, ioRealFileName(str)); printf("err: #%d - %s\n", io_GetErrno(), io_GetError()); } return 0; }