Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
8ad154c0
Commit
8ad154c0
authored
Nov 21, 2002
by
Niels Möller
Browse files
(print_hex): Add line breaks.
Rev: src/nettle/testsuite/testutils.c:1.20
parent
6003487b
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/testutils.c
View file @
8ad154c0
...
...
@@ -115,10 +115,20 @@ print_hex(unsigned length, uint8_t *data)
for
(
i
=
0
;
i
<
length
;
i
++
)
{
if
(
!
(
i
%
8
))
printf
(
" "
);
switch
(
i
%
16
)
{
default:
break
;
case
0
:
printf
(
"
\n
"
);
break
;
case
8
:
printf
(
" "
);
break
;
}
printf
(
"%02x"
,
data
[
i
]);
}
printf
(
"
\n
"
);
}
int
verbose
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment