public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* index.3 wcsnlen.3  proposals
@ 2011-09-20 23:03 Jon Grant
       [not found] ` <4E791BB2.4040809-hus3n9K41k0@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Grant @ 2011-09-20 23:03 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello

Some feedback below. Great new release!

I saw in index.3:

http://man7.org/linux/man-pages/online/pages/man3/index.3.html

Some use of "NULL" to mean the Nul terminating byte. I suggest to change 
from NULL, as that means (void*)0;

Current text:
"The terminating NULL character is considered to be a part of the strings."

Proposal:

"The terminating NUL character '\0' is considered to be a part of the 
strings. A user call with c=0 to find the end of the string."


http://man7.org/linux/man-pages/online/pages/man3/wcsnlen.3.html

I think worth clarifying "maxlen" is in wide-char units, not bytes.

Current text:

"but at most maxlen"

Proposal:
"but at most maxlen wide characters (note, this parameter is not a byte 
count)"


Best regards, Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: index.3 wcsnlen.3 proposals
       [not found] ` <4E791BB2.4040809-hus3n9K41k0@public.gmane.org>
@ 2011-09-21  5:05   ` Michael Kerrisk
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2011-09-21  5:05 UTC (permalink / raw)
  To: Jon Grant; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Jon,

On Wed, Sep 21, 2011 at 1:03 AM, Jon Grant <jg-hus3n9K41k0@public.gmane.org> wrote:
> Hello
>
> Some feedback below. Great new release!
>
> I saw in index.3:
>
> http://man7.org/linux/man-pages/online/pages/man3/index.3.html
>
> Some use of "NULL" to mean the Nul terminating byte. I suggest to change
> from NULL, as that means (void*)0;

Thanks for spotting that!

> Current text:
> "The terminating NULL character is considered to be a part of the strings."
>
> Proposal:
>
> "The terminating NUL character '\0' is considered to be a part of the
> strings.

I made it "The terminating null byte (\0)..." since that's consistent
with what is usually written in other pages.

> A user call with c=0 to find the end of the string."

That doesn't quite parse, but I understand what you are meaning (I
think). However, I'm not sure that we want to suggest to the user to
do this. POSIX in any case marks this function as LEGACY.

> http://man7.org/linux/man-pages/online/pages/man3/wcsnlen.3.html
>
> I think worth clarifying "maxlen" is in wide-char units, not bytes.
>
> Current text:
>
> "but at most maxlen"
>
> Proposal:
> "but at most maxlen wide characters (note, this parameter is not a byte
> count)"

Agreed. I made the change.

The changes will be in 3.34.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2011-09-21  5:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-20 23:03 index.3 wcsnlen.3 proposals Jon Grant
     [not found] ` <4E791BB2.4040809-hus3n9K41k0@public.gmane.org>
2011-09-21  5:05   ` Michael Kerrisk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox