Mail Archives: djgpp/1998/01/28/23:51:07
From: | Ian Perez <fish AT discover DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | *argv[] help!
|
Date: | Wed, 28 Jan 1998 20:41:40 -0800
|
Organization: | DiscoverNet
|
Lines: | 13
|
Message-ID: | <34D00884.CE5@discover.net>
|
NNTP-Posting-Host: | redlandsts5-30.discover.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm having trouble with this piece of code :
int main(int argc, char *argv[])
{
printf("%s", argv[1]);
}
If argv[1] has wildcards like ? and *, argv[1] will be the first
filename matching that criteria. How can I get it so argv[1] will
actually BE what the second argument is??
Please help!
Ian Perez (fish AT discover DOT net) http://www.discover.net/~fish
- Raw text -