特定数据类型的字段宽度,比如用四位数字表示年份。
Field widths for specific data types, such as four digits for a year.
一个“字段宽度”(比如“ %10s ”)仅指定了最小长度 ―― 而不是最大长度。
A "field width" (such as "%10s") only specifies the minimum length -- not the maximum length.
“字段宽度”指定符会留下缓冲区溢出隐患,而字段宽度和精确宽度指定符看起来几乎完全相同——唯一的区别在于安全的版本具有一个点号。
The "field width" specifier allows buffer overflows, and the field width and the precision width specifiers look almost identical — the only difference is that the safe version has a period.
应用推荐