On Fri, Apr 5, 2019 at 12:56 PM Hans Petter Selasky <h...@selasky.org> wrote:
>
> On 4/5/19 9:51 PM, Conrad Meyer wrote:
> > static const u_char dot_name[11] = ".          ";
> > static const u_char dotdot_name[11] = "..         ";
> >
> > Seems more clear to me.
>
> Using this syntax will include a terminating zero.

Nope?

(gdb) ptype foo
type = const unsigned char [11]
(gdb) p foo
$3 = "abc        "
(gdb) p foo[10]
$4 = 32 ' '


_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to