[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-match bug?

From: Matthew Dempsky
Subject: Re: string-match bug?
Date: Wed, 9 Dec 2009 13:15:01 -0800

On Wed, Dec 9, 2009 at 10:59 AM, Andreas Röhler
<address@hidden> 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

> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]