- 注册时间
- 2005-7-1
- 最后登录
- 2018-4-24
版主
自定义头衔
  
- 积分
- 402
|
发表于 2007-11-18 15:44:26
|
显示全部楼层
找到这个:
.*
The precision is not specified in the format string, but as an additional integer value argument
preceding the argument thas has to be formatted.
依然不会:
wchar_t str[] = L"file bytes-copy. ";
fwprintf_s( stdout, L"%.*s: %s(%d) to %s(%d) with length:%d \\n",
str, argv[1], offsetsrc, argv[2], offsetdst, lengthneed );
输出错误的结果:
a.txt: (null)(3617892) to (null)(1000) with length:2600
正确的应该是:
file bytes-copy. : a.txt(0) to b.txt(0) with length:0 |
|