Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2016 08:30:34 +0200
From:      Ed Schouten <ed@nuxi.nl>
To:        Don Lewis <truckman@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: is ut_user[] in struct utmpx NUL terminated?
Message-ID:  <CABh_MKk4Z8UFasaaPUEPLuNSY-B%2BEnCKM%2BszQJtyUHYSD3N_Bg@mail.gmail.com>
In-Reply-To: <201605252149.u4PLnaoG007496@gw.catspoiler.org>
References:  <CABh_MKkY_puFRj8VX3eX2A3RJ8GeAQb%2BT8NhUEVOKohTmOWdhg@mail.gmail.com> <201605252149.u4PLnaoG007496@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2016-05-25 23:49 GMT+02:00 Don Lewis <truckman@freebsd.org>:
> We should probably document this in the man page.

This specific aspect is already documented in the man page:

     The ut_user, ut_line and ut_host fields of the structure returned by the
     library functions are also guaranteed to be null-terminated in this
     implementation.

Be sure to send me a code review if you can think of ways to improve
the man page.

-- 
Ed Schouten <ed@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKk4Z8UFasaaPUEPLuNSY-B%2BEnCKM%2BszQJtyUHYSD3N_Bg>