diff options
Diffstat (limited to 'src/libstrongswan/utils.h')
-rw-r--r-- | src/libstrongswan/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/utils.h b/src/libstrongswan/utils.h index 298253fdd..c794b0797 100644 --- a/src/libstrongswan/utils.h +++ b/src/libstrongswan/utils.h @@ -225,6 +225,12 @@ void *clalloc(void *pointer, size_t size); void memxor(u_int8_t dest[], u_int8_t src[], size_t n); /** + * A variant of strstr with the characteristics of memchr, where haystack is not + * a null-terminated string but simply a memory area of length n. + */ +void *memstr(const void *haystack, const char *needle, size_t n); + +/** * Creates a directory and all required parent directories. * * @param path path to the new directory |