On 2026-02-22T12:21:34+0100, Alejandro Colomar wrote:
> Hi Paul,
> 
> On 2026-02-21T17:48:30-0800, Paul Eggert wrote:
> > On 2026-02-21 07:02, Alejandro Colomar wrote:
> > > +.BI char\~*streq(const\~char\~* s );
> > 
> > I see you fixed the misspelling of "strnul". However, there's a more
> > important issue here: that's not the type of Gnulib strnul. Gnulib strnul is
> > a qualifier-generic macro, and (unlike C23 strchr) there is no underlying
> > function named "strnul". This needs to be documented clearly.
> 
> Yup, if there are no plans to have a function, I'll document the
> const-generic macro.  Thanks!

I've pushed the following patch:

        commit e29efc9b6bdbb644a44c2b9e3d6bfbf06ce4ec62 (HEAD -> contrib)
        Author: Alejandro Colomar <[email protected]>
        Date:   2026-02-22 14:34:36 +0100

            man/man3/strnul.3: SYNOPSIS: Use QChar
            
            Reported-by: Paul Eggert <[email protected]>
            Signed-off-by: Alejandro Colomar <[email protected]>

        diff --git a/man/man3/strnul.3 b/man/man3/strnul.3
        index 714b4d191cae..f84e13fdc82b 100644
        --- a/man/man3/strnul.3
        +++ b/man/man3/strnul.3
        @@ -12,7 +12,7 @@ .SH SYNOPSIS
         .nf
         .B #include <string.h>
         .P
        -.BI char\~*strnul(const\~char\~* s );
        +.BI QChar\~*strnul(QChar\~* s );
         .fi
         .SH DESCRIPTION
         .BR strnul ()

I might document QChar is a separate page, eventually.  I'm still
thinking about whether to do it or not, and what to document in such
a page.  Patches are welcome, if anyone has some ideas.


Cheers,
Alex

-- 
<https://www.alejandro-colomar.es>

Attachment: signature.asc
Description: PGP signature

Reply via email to