>----- Oorspronkelijk bericht ----- >Van: John Elliott [mailto:[EMAIL PROTECTED] >Verzonden: dinsdag, oktober 2, 2007 08:30 PM >Aan: freedos-devel@lists.sourceforge.net >Onderwerp: Re: [Freedos-devel] lfn in freecom? > >> >> 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 >
It works for turbo c too (does the same as djgpp). Imre > >------------------------------------------------------------------------- >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 >Freedos-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/freedos-devel > > ------------------------------------------------------------------------- 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 Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel