I have a simple program as follows:
#include <stdio.h>
int main(int argc, char *argv[])
{
int x;
for (x=0; x<argc; x++)
printf("arg0=%s", argv[x]);
exit(0);
}
If I compile and run on windows when I pass parameters they display, however, they do not display when I compile and run on Solaris 7 using gcc. If I print argc, it equals 0 even if I pass in values. Is there something I'm missing on unix?
Thanks,
Todd Hahn.
[email protected]