摘要:
众所周知,sprintf不能检查目标字符串的长度,可能造成众多安全问题,所以都会推荐使用snprintf.snprintf(_snprintf)的声明是这样的int _snprintf( char *buffer, size_t count, const char *format [, argument] ... );If len < count, then len characters are stored in buffer, a null-terminator is appended, and len is returned.If len = count, then len cha 阅读全文