Date: Thu, 19 Nov 1998 20:30:50 -0800 From: "David O'Brien" <obrien@NUXI.com> To: Archie Cobbs <archie@whistle.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: snprintf() in the kernel Message-ID: <19981119203050.A4033@nuxi.com> In-Reply-To: <199811200057.QAA29023@bubba.whistle.com>; from Archie Cobbs on Thu, Nov 19, 1998 at 04:57:47PM -0800 References: <19981120093817.K467@freebie.lemis.com> <199811200057.QAA29023@bubba.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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. -- -- David (obrien@NUXI.ucdavis.edu -or- obrien@FreeBSD.org) 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?19981119203050.A4033>