這時snprintf 就應運而生. int snprintf(char *str, size_t size, const char * restrict format, ...) 他可以限制字串的長度,避免overflow。標準的用法是.
確定! 回上一頁