Chinaunix首页 | 论坛 | 博客
  • 博客访问: 180277
  • 博文数量: 37
  • 博客积分: 1367
  • 博客等级: 中尉
  • 技术积分: 465
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-06 17:41
文章分类

全部博文(37)

文章存档

2015年(1)

2012年(17)

2011年(10)

2010年(1)

2009年(8)

我的朋友

分类: C/C++

2009-07-10 15:06:19

Class:CConsoleBase
function:Printf
The difference between %s and %S is:
"%s" is used with zero terminated strings, "%S" is used with descriptors.
more:

s

Interpret the argument as a pointer to a TUint16 type, for 16 bit descriptors, or a TUint8 type, for 8 bit descriptors, and copy all data starting at this location up to, but not including the location which contains a zero value.

(Note the lower case).

S

In 16 bit descriptors, interpret the argument as a pointer to a 16 bit descriptor, and copy the data from it; in 8 bit descriptors, interpret the argument as a pointer to an 8 bit descriptor, and copy the data from it.

(Note the upper case).

You can get more message about it from SDK 5th document, you can get it from "Format string syntax"
阅读(1263) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~