从上可以看出,snprintf和strncpy用法稍有不同,分别如下: char dst[X]; char src[Z]; snprintf(dst, sizeof(dst), "%s", src); strncpy(dst, src, ...
確定! 回上一頁