I've got a basic program that's designed to copy the functionality of bash's cp command. I'm developing a copy for UNIX and for Windows. My UNIX version works fine, however, I'm finding that Windows doesn't have support for the "wx" mode option for fopen(), as in the following line:
file2 = fopen(argv[2], "wx");
Is there an alternative way to mirror the wx functionality mode for fopen here?
(wx allows for opening a file with write access, but will return an error if a file with the same filename already exists--meaning you won't override the existing file. See here.
note: attempting to run the program in Developer Command Prompt for VS2013