aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-11-18 08:20:09 +0000
committerRoger Dingledine <arma@torproject.org>2003-11-18 08:20:09 +0000
commitec02f83f9411f5737f1e77443d282c7e3feda0e4 (patch)
treefcc7df30fdef21094242679e434ffb49b08f7605 /src/common/util.h
parenta3e39b0ceb4478339f9903ab6e01a3984e208d42 (diff)
downloadtor-ec02f83f9411f5737f1e77443d282c7e3feda0e4.tar
tor-ec02f83f9411f5737f1e77443d282c7e3feda0e4.tar.gz
add a tor_malloc_zero wrapper: tor_malloc and memset 0
svn:r836
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index f1c744b01..8e91532ba 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -33,6 +33,7 @@
#endif
void *tor_malloc(size_t size);
+void *tor_malloc_zero(size_t size);
void *tor_realloc(void *ptr, size_t size);
char *tor_strdup(const char *s);
#define tor_free(p) do {if(p) {free(p); (p)=NULL;}} while(0)