sst_str.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 19 行

GML
19
字号
The &fn. creates a pointer to the buffer being used by the &obj.:PERIOD.
If the &obj. was created without dynamic allocation (static mode),
the pointer is the same as the buffer pointer passed in the
constructor.
:P.
For &obj.s using dynamic allocation,
the &fn. makes an implicit call to the
:MONO.strstreambuf::freeze
member function.
If nothing has been written to the &obj.
:CONT., the returned pointer will be &null.:PERIOD.
:P.
Note that the buffer does not necessarily end with a null character.
If the pointer returned by the &fn. is to be interpreted as a C string,
it is the program's responsibility to ensure that the null character is
present.
:RSLTS.
The &fn. returns a pointer to the buffer being used by the &obj.:PERIOD.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?