Re:Where do argc and argv come from?
by ChrisSD on Monday August 10, 2020 @03:42PM
(#24113218)
I'd also add that CommandLineToArgvW doesn't do exactly the same thing that the C runtime does to parse arguments. They used to be the same but the C runtime was tweaked in 2008 whereas CommandLineToArgvW was kept the same for backwards compatibility. See http://daviddeley.com/autohotkey/parameters/parameters.htm#W...
[ Parent
| on HN ]
Other links with code to parse/construct command lines:
- https://web.archive.org/web/20200128073602/http://www.window...
- https://web.archive.org/web/20191119112915/https://blogs.msd...
Huh. Wouldn't this have caused inter-operability problems for programs that spawn other processes?