|
From: Andrea <ab...@li...> - 2004-10-08 01:41:38
|
Hi everybody!
i have two questions:
1) Does dev-cpp include any function like
int getopt(
int argc,
char * const argv[],
const char *optstring
)
I browsed the include dir but found none;
2) given the following source
#include <stdio.h>
#include <stlib.h>
int main(int argc, char *argv[])
int i;
for(i=1; i < argc; i++) printf("%d: %s", i, argv[i]);
return(0);
}
compiled to argv_ls.exe I get:
argv_ls copy*.*
1 copy.txt
2 copy2.txt
3 copy3.txt
4 copy4.txt
when i use dev-cpp, while if I use borland
c++builder I get the following:
argv_ls copy*.*
1 *.*
Why does dev-cpp explode parameter like that?
my system is win2kpro.
Thanks a lot
AndreaB
|