is this valid.. i mean.. it doesnt really work.. but can i code something like this
just curious, tring to find all sours of ways to code just a simple programCode:struct modes { char *sbuf; }; int main( int argc, char *argv[] ) { struct modes m; char buf[256]; char ch; if( argc != 3 ) { fprintf( stderr, "--Usage: %s <file> <mode>", argv[1] ); exit( 1 ); } m.sbuf = (char *)&argv[2] ; printf( "%s", m.sbuf ); getchar( ); return 0; }