CString::GetLength

Syntax

int GetLength() const;

Remarks

Returns a count of the characters in this CString object. The count does not include a null terminator.

Example

CString s( "abcdef" );

ASSERT( s.GetLength() == 6 );

See Also

CString::IsEmpty