Поделиться через


CSimpleStringT::StringLength

Returns the number of characters in the specified string.

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

Параметры

  • psz
    A pointer to a null-terminated string.

Возвращаемое значение

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

Заметки

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

Пример

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

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

Требования

Header: atlsimpstr.h

См. также

Основные понятия

CSimpleStringT Class

CSimpleStringT Members