tag:blogger.com,1999:blog-1136927038369577335.post6376705716870913855..comments2024-03-28T15:30:01.428+08:00Comments on CK's IT blog: Binary strstrUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1136927038369577335.post-54468467557556531782016-08-03T03:29:27.980+08:002016-08-03T03:29:27.980+08:00bstrchr is part of libc, under the name memchr. I&...bstrchr is part of libc, under the name memchr. I'd recommend using that instead.<br /><br />bstrstr is also present in GNU libc (though not standardized - I agree it should be), under the name memmem. I'd recommend using that name.<br /><br />Finally, I'd expect a zero-length needle to be present in a zero-length haystack.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1136927038369577335.post-9263923083296701042013-08-30T05:46:04.048+08:002013-08-30T05:46:04.048+08:00Thanks for the bstrstr snippet and for testing it ...Thanks for the bstrstr snippet and for testing it as well. Hard to believe it's not part of libc.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1136927038369577335.post-34880952411904711522013-08-30T05:44:58.862+08:002013-08-30T05:44:58.862+08:00Thanks for the bstrstr snippet and for testing it ...Thanks for the bstrstr snippet and for testing it as well. Hard to believe it's not part of libc.Anonymousnoreply@blogger.com