svn commit: r217589 - head/usr.sbin/syslogd

David Malone dwmalone at maths.tcd.ie
Thu Jan 20 11:27:39 UTC 2011


>  	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.


More information about the svn-src-all mailing list