sprintf 指的是字符串格式化命令,函數聲明為int sprintf(char *string, char *format [ ... 解決這個問題,可以考慮使用snprintf函數,該函數可對寫入字符數做出限制。
確定! 回上一頁