diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-06-18 02:17:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-06-18 02:17:11 +0000 |
commit | 5fee58adfb95adbe7b6c694c8d1449be1acc2051 (patch) | |
tree | 710c5ba4935103d8c770d9d852db2c284584e7b0 /src/common/compat.h | |
parent | c1e91ff493eb2944a8b948426c651e7998cdce6a (diff) | |
download | tor-5fee58adfb95adbe7b6c694c8d1449be1acc2051.tar.gz tor-5fee58adfb95adbe7b6c694c8d1449be1acc2051.zip |
Add a tor_memmem function
svn:r4452
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 8f44e93857..dbf8828ab3 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -87,6 +87,9 @@ int tor_snprintf(char *str, size_t size, const char *format, ...) CHECK_PRINTF(3,4); int tor_vsnprintf(char *str, size_t size, const char *format, va_list args); +const void *tor_memmem(const void *haystack, size_t hlen, const void *needle, + size_t nlen); + #define TOR_ISAPLHA(c) isalpha((int)(unsigned char)(c)) #define TOR_ISALNUM(c) isalnum((int)(unsigned char)(c)) #define TOR_ISSPACE(c) isspace((int)(unsigned char)(c)) |