#include <stdio.h>
int main( int argc, char* argv[] )
{
int i;
for( i = 1; i < argc; ++i )
{
printf( "argv[%d]: %s\n", i, argv[i] );
}
getchar();
}
as
m68k-atari-mint-gcc -o test.ttp test.c
... everything's fine, we see the passed argument. Now as
m68k-atari-mint-gcc -mshort -o test.ttp test.c
... and there are no arguments!
--
MiKRO / Mystic Bytes
http://mikro.atari.org