1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-26 01:54:22 +00:00

print_array: Remove newline after every 20 elements

The terminal will handle wrapping as necessary.
This commit is contained in:
Steffo 2022-11-17 01:56:08 +01:00
parent a23fd895e9
commit 1e45a5adca
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -48,8 +48,6 @@ static void print_array(int nx,
for (i = 0; i < nx; i++)
{
fprintf(stderr, DATA_PRINTF_MODIFIER, y[i]);
if (i % 20 == 0)
fprintf(stderr, "\n");
}
fprintf(stderr, "\n");
}