Date: Thu, 19 Nov 1998 20:41:40 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: obrien@NUXI.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: snprintf() in the kernel Message-ID: <199811200441.UAA18801@bubba.whistle.com> In-Reply-To: <19981119203050.A4033@nuxi.com> from David O'Brien at "Nov 19, 98 08:30:50 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
David O'Brien writes: > > The only subtle gotcha with snprintf() is that it returns > > the number of characters that *would* have been printed, > > not the number that actually were printed. > > So, create a new function called ksprintf() that has the calling semantics > of sprintf(), but the return semantics you like. I don't have a problem with it.. I'm just pointing that out so people don't make the wrong assumption (I found out the hard way once :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811200441.UAA18801>