When told to print no more than n bytes, snprintf guarantees that it creates a string of length no more than n-1, with a null terminator at the end of the string.
当被告知输出不超过n个字节时,snprintf保证会创建一个长度不超过n-1的字符串,字符串最后是一个空结束符。
When told to print no more than n bytes, snprintf guarantees that it creates a string of length no more than n-1, with a null terminator at the end of the string.
当被告知输出不超过n个字节时,snprintf保证会创建一个长度不超过n-1的字符串,字符串最后是一个空结束符。
应用推荐