sprintf (/* ... */, "%.*s", (int) strlen(str), str); 如果您使用C99, snprintf 也可以合适。 man printf (3) The width is not specified in the format string, ...
確定! 回上一頁