You can even use "*" as a precision specifier (such as "%.*s"), so you can pass in a maximum length instead of having the maximum length embedded in the control string.
甚至可以使用“ * ”作为精确指定符(比如“ %.*s ”),这样您就可以传入一个最大长度值,而不是在控制字符串中嵌入最大长度值。
You can even use "*" as a precision specifier (such as "%.*s"), so you can pass in a maximum length instead of having the maximum length embedded in the control string.
甚至可以使用“ * ”作为精确指定符(比如“ %.*s ”),这样您就可以传入一个最大长度值,而不是在控制字符串中嵌入最大长度值。
应用推荐