StrPtr::Value()
Return the char * containing this StrPtr's
text.
|
Virtual? |
No |
|
|
Class |
||
|
Arguments |
None |
|
|
Returns |
|
This |
Notes
StrPtr::Value() is the
deprecated form of StrPtr::Text(). The two
functions are equivalent. Their most typical use is converting a
StrPtr to a char * for functions outside of the
client API to use.
Example
#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.Value() );
return 0;
}
Executing the preceding code produces the following output:
the quick brown fox jumps over the lazy dog






