title: Are snprintf and friends safe to use?
body: <p>There was a question recently on SO (<a href="https://stackoverflow.com/questions/1258550/why-on-earth-would-anyone-use-strncpy-instead-of-strcpy">Why on earth would anyone use strncpy instead of strcpy?</a>), which hade answers (<a href="https://stackoverflow.com/questions/1258550/why-on-earth-would-anyone-use-strncpy-instead-of-strcpy/1258577#1258577">answer 1</a>, <a href="https://stackoverflow.com/questions/1258550/why-on-earth-would-anyone-use-strncpy-instead-of-strcpy/1258576#1258576">answer 2</a>), that made me uncertain about other string functions with 'n' in their name, like <code>snprintf</code> (which I have been using extensively). Is snprintf safe to use? And generally, what are the safe functions from the 'n' family?</p>