is ut_user[] in struct utmpx NUL terminated?

Ed Schouten ed at nuxi.nl
Thu May 26 06:30:36 UTC 2016


2016-05-25 23:49 GMT+02:00 Don Lewis <truckman at 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 at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


More information about the freebsd-arch mailing list