From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Dempsky Newsgroups: gmane.emacs.help Subject: Re: string-match bug? Date: Wed, 9 Dec 2009 13:15:01 -0800 Message-ID: References: <4B1F5A38.1030703@easy-emacs.de> <4B1FDF51.1010002@easy-emacs.de> <4B1FF3A8.4080108@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260393344 16030 80.91.229.12 (9 Dec 2009 21:15:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Dec 2009 21:15:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 09 22:15:37 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NITsk-0004tO-LJ for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 22:15:34 +0100 Original-Received: from localhost ([127.0.0.1]:53225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NITsk-0008MJ-51 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Dec 2009 16:15:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NITsK-0008KL-QV for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 16:15:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NITsG-0008F9-0B for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 16:15:08 -0500 Original-Received: from [199.232.76.173] (port=33180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NITsF-0008Es-Q3 for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 16:15:03 -0500 Original-Received: from mail-pz0-f181.google.com ([209.85.222.181]:51822) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NITsF-0007uF-Ht for help-gnu-emacs@gnu.org; Wed, 09 Dec 2009 16:15:03 -0500 Original-Received: by pzk11 with SMTP id 11so924281pzk.14 for ; Wed, 09 Dec 2009 13:15:01 -0800 (PST) Original-Received: by 10.114.8.5 with SMTP id 5mr4486643wah.117.1260393301697; Wed, 09 Dec 2009 13:15:01 -0800 (PST) In-Reply-To: <4B1FF3A8.4080108@easy-emacs.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70535 Archived-At: On Wed, Dec 9, 2009 at 10:59 AM, Andreas R=F6hler wrote: > CMIIW but does this example above not mean, it returns > the string? strstr(s, t) searches s for the first occurrence of t in s, and then returns a pointer to that offset if it finds one, and returns NULL otherwise. > So far quite different from the rest? Semantically, the meaning is the same: it found an empty string at the start of the haystack string.