diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-30 23:47:52 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-12-30 23:47:52 +0000 |
commit | 329bccc5a59208d1eb1eb476fc0911db245a32b4 (patch) | |
tree | 04a13fd1d65a01ebd1ff957ae8b6d5566db1738b /epan/tvbuff.h | |
parent | 9fa6429626eee09189c5edd668496ef6165cdbf9 (diff) |
Add a "tvb_bytes_to_str_punct()" routine, which wraps
"bytes_to_str_punct()", and use it instead of extracting the bytes and
formatting them by hand.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12876 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index afcfad18cf..620f73ee4b 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -501,6 +501,14 @@ extern gint tvb_memeql(tvbuff_t *tvb, gint offset, const guint8 *str, /* * Format a bunch of data from a tvbuff as bytes, returning a pointer + * to the string with the formatted data, with "punct" as a byte + * separator. + */ +extern gchar *tvb_bytes_to_str_punct(tvbuff_t *tvb, gint offset, gint len, + gchar punct); + +/* + * Format a bunch of data from a tvbuff as bytes, returning a pointer * to the string with the formatted data. */ extern gchar *tvb_bytes_to_str(tvbuff_t *tvb, gint offset, gint len); |