linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Errors in two Section 3 functions
@ 2025-11-02 15:47 Rick Stanley
  2025-11-02 17:42 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Stanley @ 2025-11-02 15:47 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-02 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-02 15:47 Errors in two Section 3 functions Rick Stanley
2025-11-02 17:42 ` Alejandro Colomar

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