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) |