mirror of
https://github.com/Steffo99/unimore-hpc-assignments.git
synced 2024-11-29 11:34:21 +00:00
print_array
: Remove newline after every 20 elements
The terminal will handle wrapping as necessary.
This commit is contained in:
parent
a23fd895e9
commit
1e45a5adca
1 changed files with 0 additions and 2 deletions
|
@ -48,8 +48,6 @@ static void print_array(int nx,
|
||||||
for (i = 0; i < nx; i++)
|
for (i = 0; i < nx; i++)
|
||||||
{
|
{
|
||||||
fprintf(stderr, DATA_PRINTF_MODIFIER, y[i]);
|
fprintf(stderr, DATA_PRINTF_MODIFIER, y[i]);
|
||||||
if (i % 20 == 0)
|
|
||||||
fprintf(stderr, "\n");
|
|
||||||
}
|
}
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue