In the following code how do I read path1 and path2 from arguments(argv
)? How do I convert argv[1]
and argv[2]
to wide string format so that it's possible to use them as _wrename
arguments?
int main(int argc, const char *argv[])
{
const wchar_t path1[] = L"/tmp/a";
const wchar_t path2[] = L"/tmp/b";
_wrename(path1, path2);
return 0;
}