CSimpleStringT::StringLength

Returns the number of characters in the specified string.

ATL_NOINLINE static int StringLength(
   PCXSTR psz
) throw( );

Parameters

  • psz
    A pointer to a null-terminated string.

Return Value

The number of characters in psz; not counting a null terminator.

Remarks

Call this method to retrieve the number of characters in the string pointed to by psz.

Example

The following example demonstrates the use of CSimpleStringT::StringLength.

ASSERT(CSimpleString::StringLength(_T("soccer")) == 6);

Requirements

Header: atlsimpstr.h

See Also

Reference

CSimpleStringT Class

Other Resources

CSimpleStringT Members