I use gcc 3.4.2 (mingw)
I cant give you the parse code from the ttf tool (it's 500+ lines and full of dependencies) but here's a short code that demonstrates the issue:
Code:
/* shelltest.c */
#include <stdio.h>
#include <stdlib.h>
int main(int argc,char *argv[]) {
int i=argc;
char **args=argv;
printf("argc=%i\n",argc);
while(i--) printf("%s ",*args++);
return 0;
}
The directory listing is:
Code:
Directory of D:\touch\test
01/01/2002 05:46 AM <DIR> .
01/01/2002 05:46 AM <DIR> ..
01/01/2002 05:46 AM 197 shelltest.c
01/01/2002 05:46 AM 15,663 shelltest.exe
01/01/2002 05:47 AM 9 some.txt
3 File(s) 15,869 bytes
Example usage:
gives
Code:
argc=4
shelltest shelltest.c shelltest.exe some.txt
How do I get the '*' as it is in the arguments?