Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
87ed96bf
Commit
87ed96bf
authored
Jan 14, 2002
by
Niels Möller
Browse files
(format_hex_string): Export this function.
Rev: src/format.c:1.43 Rev: src/format.h:1.35
parent
59dc8153
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/format.c
View file @
87ed96bf
...
...
@@ -73,7 +73,6 @@ void ssh_format_write(const char *format, UINT32 length, UINT8 *buffer, ...)
}
static
int
write_decimal_length
(
UINT8
*
buffer
,
UINT32
n
);
static
void
format_hex_string
(
UINT8
*
buffer
,
UINT32
length
,
const
UINT8
*
data
);
UINT32
ssh_vformat_length
(
const
char
*
f
,
va_list
args
)
{
...
...
@@ -566,7 +565,8 @@ unsigned format_size_in_decimal(UINT32 n)
}
static
void
format_hex_string
(
UINT8
*
buffer
,
UINT32
length
,
const
UINT8
*
data
)
void
format_hex_string
(
UINT8
*
buffer
,
UINT32
length
,
const
UINT8
*
data
)
{
static
const
UINT8
hexchars
[
16
]
=
"0123456789abcdef"
;
UINT32
i
;
...
...
src/format.h
View file @
87ed96bf
...
...
@@ -83,6 +83,7 @@ void ssh_format_write(const char *format, UINT32 length, UINT8 *buffer, ...);
UINT32
ssh_vformat_length
(
const
char
*
format
,
va_list
args
);
void
ssh_vformat_write
(
const
char
*
format
,
UINT32
length
,
UINT8
*
buffer
,
va_list
args
);
void
format_hex_string
(
UINT8
*
dst
,
UINT32
length
,
const
UINT8
*
data
);
/* FIXME: Do we need a variant that handles non-const strings? */
/* Returns an ordinary NUL-terminated string, or NULL if the string
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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