linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rick Stanley <rstanley@rsiny.com>
To: Alejandro Colomar <alx@kernel.org>
Cc: linux-man@vger.kernel.org
Subject: Errors in two Section 3 functions
Date: Sun, 02 Nov 2025 10:47:47 -0500	[thread overview]
Message-ID: <d167e81b58255fb1e3bf068adc146e7a461981bb.camel@rsiny.com> (raw)

Hello!

I have noticed two errors for memmove() and memcpy().

memmove():

man7.org:
"void *memmove(size_t n;
                     void dest[n], const void src[n], size_t n);"
string.h:
"extern void *memmove (void *__dest, const void *__src, size_t __n)"
(Leaving off the __THROW text)


memcpy()

man7.org:
"void *memcpy(size_t n;
                    void dest[restrict n], const void src[restrict n],
                    size_t n);"

string.h:
"extern void *memccpy (void *__restrict __dest, const void *__restrict
__src, int __c, size_t __n)"

The issue in both is:
"memmove(size_t n;"
"memcpy(size_t n;"

IMHO on man7.org, they should read:

"void *memmove(void dest[n], const void src[n], size_t n);"

"void *memcpy(void dest[restrict n], const void src[restrict n],
 size_t n);"

Thanks!

Rick

-- 
Rick Stanley
(917) 822-7771
www.rsiny.com
IT  Consulting
Linux & Open Source Specialist

             reply	other threads:[~2025-11-02 15:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-02 15:47 Rick Stanley [this message]
2025-11-02 17:42 ` Errors in two Section 3 functions 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=d167e81b58255fb1e3bf068adc146e7a461981bb.camel@rsiny.com \
    --to=rstanley@rsiny.com \
    --cc=alx@kernel.org \
    --cc=linux-man@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;
as well as URLs for NNTP newsgroup(s).