On Thu, 13 May 2021 14:53:35 +0000 Chuck Lever III <chuck.lever@xxxxxxxxxx> wrote: > > Something like this? > > That looks about right! > > With the caveat that a non-NUL-terminated string might contain a NUL. > When displayed with '%s', such a string would be truncated. Right, but that would be the case even with %.*s. So it works the same. -- Steve