1 /* loop on a command until the return code is non-zero */
8 main( int argc
, char **argv
)
12 if (argc
< 2) { printf("Supply a command line to run\n"); exit(0); }
14 for (i
= 1; i
< argc
; i
++) {
16 if (p
+ strlen(argv
[i
]) > sizeof(c
))
18 snprintf( &c
[p
], sizeof(c
), "%s ", argv
[i
] );
20 printf( "Command line: %s", c
);
25 printf( "\n\n# %d, %d = %s\n", i
++, ok
, c
);