All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aaron Peter Bachmann <aaron_ng@inode.at>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org
Subject: misleading note in https://man7.org/linux/man-pages/man3/bstring.3.html
Date: Fri, 30 Dec 2022 23:43:37 +0100	[thread overview]
Message-ID: <4e7589dc-2c5c-d705-e2a9-4b0878bfce3d@inode.at> (raw)

Hello!

The note section in https://man7.org/linux/man-pages/man3/bstring.3.html 
says:

The functions*bcmp*(),*bcopy*(), and*bzero*() are obsolete.  Use
        *memcmp*(),*memcpy*(), and*memset*() instead.

The std-replacement replacement for bcopy() in NOT memcpy() but memmove().
Thus it should say:

The functions*bcmp*(),*bcopy*(), and*bzero*() are obsolete.  Use
        *memcmp*(),*memmove*(), and*memset*() instead.

Regards, Aaron Peter Bachmann


             reply	other threads:[~2022-12-30 22:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-30 22:43 Aaron Peter Bachmann [this message]
2022-12-30 23:05 ` misleading note in https://man7.org/linux/man-pages/man3/bstring.3.html Alejandro Colomar
2023-01-10  8:17   ` Sam James
2023-01-10 19:08     ` Alejandro Colomar

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=4e7589dc-2c5c-d705-e2a9-4b0878bfce3d@inode.at \
    --to=aaron_ng@inode.at \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.