Not all implementations of snprintf behave the same way. Many are subtly broken.<p>Some don&#x27;t nul terminate the string if it&#x27;s longer than the destination buffer.<p>Also the return value can be -1 (correct behavior on failure, but it&#x27;s often left unchecked) <i>or</i> more than destination buffer size! Fun times if you accumulate total written without range checking snprintf return value...