Skip to content

katahiromz/ArgvToCommandLine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArgvToCommandLine

It's the inverse of CommandLineToArgvW function.

std::string  ArgvToCommandLineA(int argc, char    **argv);
std::wstring ArgvToCommandLineW(int argc, wchar_t **argv);

std::string  ArgvToCommandLineA(const std::vector<std::string>&  args);
std::wstring ArgvToCommandLineW(const std::vector<std::wstring>& args);

#ifdef UNICODE
    #define ArgvToCommandLine ArgvToCommandLineW
#else
    #define ArgvToCommandLine ArgvToCommandLineA
#endif

License: MIT