#include #include // print_int_array( maxw, nelements, results[], sep, outfile ); // format results[0..nelements-1] as a separated // list onto outfile with lines <= maxw chars long. // produces a whole number of lines of output - without the trailing '\n' void print_int_array( int maxw, int nel, int *results, char sep, FILE *out ) { int linelen = 0; for( int i=0; i maxw ) { fputc( '\n', out ); linelen = 0; } else if( i>0 ) { fputc( ' ', out ); linelen++; } linelen += len; fprintf( out, "%s", buf ); if( i0 ) //{ // fputc( '\n', out ); //} }