linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
To: Stefan Kanthak <stefan.kanthak@nexgo.de>
Cc: linux-man@vger.kernel.org, mtk.manpages@gmail.com
Subject: Re: strstr(3): add special case for empty needle, as in wcsstr(3)
Date: Sun, 25 Jul 2021 22:33:34 +0200	[thread overview]
Message-ID: <60df2547-dd6a-0f6a-c69d-c6ad0c1de610@gmail.com> (raw)
In-Reply-To: <A957374054024F7DAA865C767B958654@H270>

Hi Stefan,

On 7/12/21 11:20 AM, Stefan Kanthak wrote:
> Hi,
> 
> in the section return value, wcsstr(3) provides the following note
> for the special case of an empty needle:
> 
> <https://man7.org/linux/man-pages/man3/wcsstr.3.html#RETURN_VALUE>
> 
> |  Note the special case: If needle is the empty wide-character
> |  string, the return value is always haystack itself.
> 
> The same note is but missing in strstr(3) and should be added there:
> 
> <https://man7.org/linux/man-pages/man3/strstr.3.html#RETURN_VALUE>
> 
> |  Note the special case: If needle is the empty string, the return
> |  value is always haystack itself.

Thanks, I applied a patch with that addition.  What a coincidence! I was 
looking for that special case this morning, and had to guess it out 
considering it as a normal case :)

Regards,

Alex

-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

      reply	other threads:[~2021-07-25 20:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-12  9:20 strstr(3): add special case for empty needle, as in wcsstr(3) Stefan Kanthak
2021-07-25 20:33 ` Alejandro Colomar (man-pages) [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=60df2547-dd6a-0f6a-c69d-c6ad0c1de610@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    --cc=stefan.kanthak@nexgo.de \
    /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;
as well as URLs for NNTP newsgroup(s).