366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
|
int *argcPtr, /* Filled with number of argument strings. */
void *argvPtr /* Filled with argument strings (malloc'd). */
){
WCHAR *cmdLine, *p, *arg, *argSpace;
WCHAR **argv;
int argc, size, inquote, copy, slashes;
cmdLine = GetCommandLine();
/*
** Precompute an overly pessimistic guess at the number of arguments in
** the command line by counting non-space spans.
*/
size = 2;
for(p=cmdLine; *p!='\0'; p++){
|
|
|
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
|
int *argcPtr, /* Filled with number of argument strings. */
void *argvPtr /* Filled with argument strings (malloc'd). */
){
WCHAR *cmdLine, *p, *arg, *argSpace;
WCHAR **argv;
int argc, size, inquote, copy, slashes;
cmdLine = GetCommandLineW();
/*
** Precompute an overly pessimistic guess at the number of arguments in
** the command line by counting non-space spans.
*/
size = 2;
for(p=cmdLine; *p!='\0'; p++){
|