StrPtr::Length()

Return the length of this StrPtr.

Virtual?

No

 

Class

StrPtr

 

Arguments

None

 

Returns

int

the length of this StrPtr

Example

#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