Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* strcpy compared to POSIX strcpy
@ 2020-06-29 13:41 Jonny Grant
  2020-06-29 20:30 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 3+ messages in thread
From: Jonny Grant @ 2020-06-29 13:41 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man

Hi Michael,

Returning to an old topic, noticed strcpy man page is different from the POSIX spec with regards to "terminating NUL character" or "null-terminated" shouldn't man pages should follow POSIX style writing "NUL"?

https://man7.org/linux/man-pages/man3/strcpy.3.html

https://man7.org/linux/man-pages/man3/strcpy.3p.html

https://pubs.opengroup.org/onlinepubs/9699919799/functions/strcpy.html

Another function even has nul in the name
https://man7.org/linux/man-pages/man3/strchrnul.3.html


Regards, Jonny

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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 13:41 strcpy compared to POSIX strcpy Jonny Grant
2020-06-29 20:30 ` Michael Kerrisk (man-pages)
2020-06-30 10:59   ` Jonny Grant

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git