>
> Ok, thanks, that's good news. I'm used to such feature in UNIX, and
> mistrusted it would ever be possible in DOS.
For argv/argc parsing, it depends exactly how the author of your compiler
implemented it. For example, Pacific C doesn't do anything special with
quoted strings. This program:
#include <stdio.h>
int main(int argc, char **argv)
{
int n;
for (n = 0; n < argc; n++)
{
printf("%d. %s\n", n, argv[n]);
}
return 0;
}
when compiled with Pacific and run with a quoted string, splits it up into
two:
C>echoargs "file name"
0.
1. "file
2. name"
whereas when compiled with DJGPP, it does understand quoted strings:
C>echoargs "file name"
0. c:/echoargs.exe
1. file name
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel