B
BartC
I've just discovered that a single command line argument containing
wildcards, such as *.c, is expanded to a full list of matching files before
it gets to main().
That isn't really what I want (and there could be thousands of matching
files, which I may not want to deal with in my C program, but pass on to
something else, or the argument may not be a file specification at all).
Is there any way this behaviour can be changed, without needing to write
arguments in a special way?
(On Windows, I can choose to use the WinMain entry point instead; but this
won't work under Linux, assuming that that also expands.)
wildcards, such as *.c, is expanded to a full list of matching files before
it gets to main().
That isn't really what I want (and there could be thousands of matching
files, which I may not want to deal with in my C program, but pass on to
something else, or the argument may not be a file specification at all).
Is there any way this behaviour can be changed, without needing to write
arguments in a special way?
(On Windows, I can choose to use the WinMain entry point instead; but this
won't work under Linux, assuming that that also expands.)