mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bastian Blank <bastian@waldi.eu.org>
To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [Patch 1/2] add for_each_substring() and match_substring()
Date: Thu, 8 Mar 2007 17:15:02 +0100	[thread overview]
Message-ID: <20070308161502.GA19326@wavehammer.waldi.eu.org> (raw)
In-Reply-To: <1173208763.5266.8.camel@dix>

On Tue, Mar 06, 2007 at 08:19:23PM +0100, Martin Peschke wrote:
> +char *match_to(const char *cs, const char *ct)
> +{
> +	char *delim = strpbrk(cs, ct);
> +	if (delim)
> +		return delim;
> +	else if (*cs != '\0')
> +		return (char *)(cs + strlen(cs));

This disallows the use of match_to with a real constant char array,
please remove the const from the prototyp.

Bastian

-- 
	"Get back to your stations!"
	"We're beaming down to the planet, sir."
		-- Kirk and Mr. Leslie, "This Side of Paradise",
		   stardate 3417.3

      parent reply	other threads:[~2007-03-08 16:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06 19:19 Martin Peschke
2007-03-07 18:43 ` Randy Dunlap
2007-03-08 16:15 ` Bastian Blank [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070308161502.GA19326@wavehammer.waldi.eu.org \
    --to=bastian@waldi.eu.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®