#include #include #include #include #define BUF_SIZE 100 int main( int argc, char *argv[ ] ) { char buf[ BUF_SIZE ]; // argv[0] is the program name strncpy( buf, argv[1], BUF_SIZE ); strcat( buf, " " ); buf[ BUF_SIZE - 1 ] = '\0'; int len = strlen( buf ); int loops = atoi( argv[2] ); int i; for ( i = 0; i < loops; ++i ) write( STDOUT_FILENO, buf, len ); }