From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4848 Path: news.gmane.org!not-for-mail From: u-igbb@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: memmem() - is it correct? Date: Wed, 9 Apr 2014 12:08:40 +0200 Message-ID: <20140409100840.GD21662@example.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1397038149 27858 80.91.229.3 (9 Apr 2014 10:09:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2014 10:09:09 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4852-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 09 12:09:02 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WXpRF-0004R5-LL for gllmg-musl@plane.gmane.org; Wed, 09 Apr 2014 12:09:01 +0200 Original-Received: (qmail 32091 invoked by uid 550); 9 Apr 2014 10:09:00 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32080 invoked from network); 9 Apr 2014 10:08:59 -0000 X-T2-Spam-Status: No, hits=1.5 required=5.0 tests=BAYES_60 Received-SPF: none receiver=mailfe01.swip.net; client-ip=212.7.194.71; envelope-from=u-igbb@aetey.se Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:4848 Archived-At: A test case adapted from elsewhere: ---- #include main(){ const char *haystack = "abcde"; return(!memmem(haystack, 4, "cde", 3)); } ---- returns 1 (as I would expect it to) if linked against uclibc returns 0 if linked against musl (on ia32) Any comments? Rune