Version 4.10. man memmem void *memmem(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen); but man bstring void *memmem(const void *needle, size_t needlelen, const void *haystack, size_t haystacklen); I believe the first one, with haystack first, is the correct one. Emil Fihlman