delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/29/08:15:34

From: Anthony Williams <anthonyw AT dibbs DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP!!
Date: 29 Jan 1998 13:10:13 GMT
Lines: 25
Message-ID: <6apv3l$e01$0@198.79.30.57>
References: <34D01E03 DOT 5060 AT discover DOT net>
Reply-To: anthonyw AT dibbs DOT net
NNTP-Posting-Host: 198.79.30.57
Mime-Version: 1.0
CC: fish AT discover DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm guessing you want to disable the wildcard expansion part of DJGPP.
If I remember correctly (and I only discovered this recently), you can
disable this feature by declaring an empty function instead of using the
default __crt0_something_something(); function (check libc.inf). This
will reduce a little bit of the startup code, and therefore probably
shrink your executable a tad. 
-- 
http://www.geocities.com/SiliconValley/Peaks/6079/djgpp.htm

Ian Perez wrote:
> 
> Ok, when I use the following program :
> 
> #include <stdio.h>
> 
> int main(int argc, char *argv[])
> {
>         printf("%s", argv[1]);
> }
> 
> When I use wildcards in the first argument, argv[1] becomes the first
> file matching that criteria.  Is there any way to stop it from doing
> that??  I just want the exact string typed to be in argv[1].
> 
>         Ian Perez (fish AT discover DOT net) http://www.discover.net/~fish

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019