[TriLUG] Limit to command line arguments?
conrad at bungled.net
Sat Oct 22 14:32:49 EDT 2005
Something like "*.CAD" is normally evaluated by the shell and not the
program, so it would still be limited to the length of the command
But, supplying a directory to the program could be a good solution. At
least in C, one can get a directory listing with the opendir(...),
readdir(...) and the closedir(...) function. scandir(...) might also
be interesting for you.
On Sat, Oct 22, 2005 at 02:16:17PM -0400, Randall Barlow wrote:
> Warren Myers wrote:
> >Can you do something along the lines of <progname> *.CAD?
> I've thought about that too. I'm fairly new to C++ programming, so I'd
> just have to figure out how to get a list of files in the current
> directory. This might be a good option too, thanks!
> Randy Barlow
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
More information about the TriLUG