aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-04-02 12:30:46 -0400
committerNick Mathewson <nickm@torproject.org>2010-04-02 12:30:46 -0400
commit927425150b3266aefcd9155a502165e05e4e6e5c (patch)
tree6184c1c993c253daac52c444448812eed51a5f1f /src/common/compat.h
parentcae769d646e721efff3c286a2c46769680dc01f5 (diff)
parent47e919424da36ab1cf92c6829bca69d7811d4b14 (diff)
downloadtor-927425150b3266aefcd9155a502165e05e4e6e5c.tar.gz
tor-927425150b3266aefcd9155a502165e05e4e6e5c.zip
Merge branch 'asprintf'
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index f5f8bb4283..dbadd60509 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -243,6 +243,10 @@ int tor_snprintf(char *str, size_t size, const char *format, ...)
int tor_vsnprintf(char *str, size_t size, const char *format, va_list args)
ATTR_NONNULL((1,3));
+int tor_asprintf(char **strp, const char *fmt, ...)
+ CHECK_PRINTF(2,3);
+int tor_vasprintf(char **strp, const char *fmt, va_list args);
+
const void *tor_memmem(const void *haystack, size_t hlen, const void *needle,
size_t nlen) ATTR_PURE ATTR_NONNULL((1,3));
static const void *tor_memstr(const void *haystack, size_t hlen,