#include #include #define BUFSIZE 10 int main (int argc, char**argv) { char line[BUFSIZE] =""; int which_arg; /* line[0] = '\0'; make it empty initially */ printf ("argc = %d\n", argc); for (which_arg=0; which_arg < argc; ++which_arg) { strcat (line, argv[which_arg]); strcat (line, " "); } printf ("Command line: \"%s\"\n", line); return 0; }