Date: Thu, 20 Jan 2011 11:27:34 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: Bruce Evans <brde@optusnet.com.au> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r217589 - head/usr.sbin/syslogd Message-ID: <201101201127.aa23364@walton.maths.tcd.ie> In-Reply-To: Your message of "Thu, 20 Jan 2011 19:03:07 %2B1100." <20110120183431.E11559@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> snprintf(buf, 2, "%*s%*s%*s", INT_MAX, "223", INT_MAX, "", 3, "bar"); Ah - good example. Would it be worth adding some clarification to our man page? The paragraphs discussing return values suggest that *printf() functions can only fail because of output or malloc errors. I guess two other cases are invalid wide characters and the return value not being representable as an int? David.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101201127.aa23364>