summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-17 07:28:09 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-17 07:28:09 +0000
commit971b002d935155abd56d0b01fe5e284f63439b99 (patch)
treec31c349097cf981b9294f226534608b750c83f92 /src/common/util.h
parentd9a8e317e435222da6dd670049b1f73654bbcca2 (diff)
downloadtor-971b002d935155abd56d0b01fe5e284f63439b99.tar.gz
tor-971b002d935155abd56d0b01fe5e284f63439b99.zip
Include strlcpy and strlcat where not available, so our string ops can be less error-prone.
svn:r1289
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 63d55c6fe4..f9b2b90eb5 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -32,6 +32,9 @@
#define INLINE inline
#endif
+size_t strlcat(char *dst, const char *src, size_t siz);
+size_t strlcpy(char *dst, const char *src, size_t siz);
+
void *tor_malloc(size_t size);
void *tor_malloc_zero(size_t size);
void *tor_realloc(void *ptr, size_t size);