AL(ALWAYS)是否终止?
原文:Is snprintf() ALWAYS null terminating?
原文:Is snprintf() ALWAYS null terminating?
Is snprintf always null terminating the destination buffer? In other words, is this sufficient: char dst[10]; snprintf(dst, sizeof (dst), "blah %s", somestr); or do you have to do like this, if ...