StrPtr::Text()
Return the char *
containing this StrPtr
's
text.
Virtual? |
No |
|
Class |
||
Arguments |
None |
|
Returns |
|
This |
Notes
StrPtr::Text()
and StrPtr::Value()
are exactly
equivalent. Their most typical use is converting a StrPtr
to
a char *
for functions outside of the client API to use.
Example
Copy
#include <stdhdrs.h>
#include <strbuf.h>
int main( int argc, char **argv )
{
StrBuf str1;
str1.Set( "the quick brown fox jumps over the lazy dog" );
printf( "%s\n", str1.Text() );
return 0;
}
Executing the preceding code produces the following output:
the quick brown fox jumps over the lazy dog