Skip to content

Commit

Permalink
task: Replace puts with printf
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mocanu <[email protected]>
  • Loading branch information
gabrielmocanu committed Mar 30, 2024
1 parent 575a8bc commit 142d64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curs/chap-04-reprezentare/02-same-data/same_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ static void dump(const void *start, size_t len, const char *id)
for (i = 0; i < len; i++) {
/* Add a newline every 8 bytes. */
if (i % 8 == 0)
puts("");
printf("\n");
printf(" %02x", *((const unsigned char *) start + i));
}
/* And newline at the end. */
puts("");
printf("\n");
}


Expand Down

0 comments on commit 142d64b

Please sign in to comment.