aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-10 08:24:56 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-10 08:24:56 +0000
commitb5aea6399dea1f9f0e39b64e88c03d1e6a578192 (patch)
treec304a7c19513f7e0a70240eb55005ac757230b5c /epan/emem.h
parent95cd6014a9b0e21a00d4fe0424e0191bdaef2e64 (diff)
Add "ep_strdup_vprintf()" and "se_strdup_vprintf()", for completeness.
Make them not reuse a va_list; there's no guarantee that it can be used more than once and, in fact, on some platforms, you *can't* use it more than once. Based on a patch by Pekka Pietikainen. Clean up indentation a bit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16174 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/emem.h')
-rw-r--r--epan/emem.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/emem.h b/epan/emem.h
index 69fa82c51b..7287382b39 100644
--- a/epan/emem.h
+++ b/epan/emem.h
@@ -61,7 +61,8 @@ gchar* ep_strndup(const gchar* src, size_t len);
/* Duplicate a buffer with a packet lifetime scope */
guint8* ep_memdup(const guint8* src, size_t len);
-/* Create a formated string with a packet lifetime scope */
+/* Create a formatted string with a packet lifetime scope */
+gchar* ep_strdup_vprintf(const gchar* fmt, va_list ap);
gchar* ep_strdup_printf(const gchar* fmt, ...)
GNUC_FORMAT_CHECK(printf, 1, 2);
@@ -142,7 +143,8 @@ gchar* se_strndup(const gchar* src, size_t len);
/* Duplicate a buffer with a capture lifetime scope */
guint8* se_memdup(const guint8* src, size_t len);
-/* Create a formated string with a capture lifetime scope */
+/* Create a formatted string with a capture lifetime scope */
+gchar* se_strdup_vprintf(const gchar* fmt, va_list ap);
gchar* se_strdup_printf(const gchar* fmt, ...)
GNUC_FORMAT_CHECK(printf, 1, 2);