Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 17:14:21 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Julian Elischer <julian@whistle.com>
Cc:        Mike Smith <mike@smith.net.au>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: OpenBSD's strlcpy(3) and strlcat(3) 
Message-ID:  <199907160014.RAA01977@dingo.cdrom.com>
In-Reply-To: Your message of "Thu, 15 Jul 1999 17:14:31 PDT." <Pine.BSF.3.95.990715171001.6348E-100000@current1.whistle.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> but what about
> 
> While ( more data items)
> {
>   copy data items onto end of buffer
>   if full{
>      write out buffer
>      clear buffer, copy in rest of last item.
>   }
> }
> 
> 
> I'd certainly not want to use xxprintf() for that

This is what stdio does, funnily enough.  See fwrite() etc.

-- 
\\  The mind's the standard       \\  Mike Smith
\\  of the man.                   \\  msmith@freebsd.org
\\    -- Joseph Merrick           \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907160014.RAA01977>