Mail Archives: djgpp/1999/01/02/15:17:15
Hi,
The documentation says one could disable the command line wildcard
expansion by providing a __ctr0_glob_function() that always returned NULL.
But I found out this only works with C source files. This can be tested
this way:
#include <stdio.h>
char **__crt0_glob_function(char *_argument)
{
printf("This is __crt0_glob_function\n");
return NULL;
}
int main(int argc, char *argv[])
{
int i;
for(int i=0; i<argc; i++)
printf("%s\n", argv[i]);
return 0;
}
save this as glob.c, compile it and run. Then rename the source file to
glob.cpp and rebuild it. You will notice the C version prints the message,
while the C++ doesn't.
Is there a way around this?
Thiago Albuquerque
- Raw text -