added memstr and extract_token_str helper functions

This commit is contained in:
Tobias Brunner
2008-12-03 09:45:58 +00:00
parent 0948edbbff
commit 81736d7d24
4 changed files with 57 additions and 2 deletions
+6
View File
@@ -224,6 +224,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.
*