Human68k CUI emulator with sound.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-path.c 636B

123456789101112131415161718192021222324
  1. #include <limits.h>
  2. #include "v68io.h"
  3. int main(int argc, char **argv, char **envp) {
  4. v68_io_init();
  5. v68_io_autodetect_drives();
  6. v68_dump_drives();
  7. char buf[PATH_MAX];
  8. char *c = v68_io_xlate_path("/media/tb/vgm/ProjectAY.zip", buf, PATH_MAX);
  9. printf("%s\n", c);
  10. c = v68_io_xlate_dos_path("h:\\foo.txt", buf, PATH_MAX);
  11. printf("%s\n", c);
  12. c = v68_io_xlate_dos_path("D:\\Program%20Files%20(x86)\\dbForGe%20Studio%20for%20MySQL\\dbForge%20Studio%20for%20MySQL.exe", buf, PATH_MAX);
  13. printf("%s\n", c);
  14. char buf2[PATH_MAX];
  15. c = v68_io_resolve_path(buf, buf2, PATH_MAX);
  16. printf("resolved %s -> %s\n", buf, c);
  17. return 0;
  18. }