StrPtr::Length()
Return the length of this StrPtr
.
Virtual? |
No |
|
Class |
||
Arguments |
None |
|
Returns |
|
the length of this |
Example
Copy
#include <stdhdrs.h>
#include <strbuf.h>
int main( int argc, char **argv )
{
StrBuf str1;
str1.Set( "This string" );
printf( "%s is %d bytes long\n", str1, str1.Length() );
return 0;
}
Executing the preceding code produces the following output:
This string is 11 bytes long