Subject: snprintf returns? [was Re: CVS commit: src/sys]
To: Klaus Klein <kleink@mibh.de>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: tech-kern
Date: 04/24/2004 20:43:34
On Sat, Apr 24, 2004 at 02:27:28PM +0200, Klaus Klein wrote:
> snprintf() returns the amount of storage _required_ to format the
> arguments given, which may be larger than the available storage size
> passed to it (ep - cp).  In a worst case scenario, the storage will
	huh?  man snprintf, 3rd paragraph of the description:
     These functions return the number of characters printed (not including
     the trailing `\0' used to end output to strings).  If an output error was
     encountered, these functions shall return a negative value.

eric