TCString::Strnlen

Calculate the length of the string up to the given size.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/CString.h

Include

#include "Misc/CString.h"

Syntax

static int32 Strnlen
(
    const CharType * String,
    SIZE_T StringSize
)

Remarks

Calculate the length of the string up to the given size.

Returns

Length The smaller of StringSize and the number of characters in String before a null character.

Parameters

Parameter

Description

String

A possibly-null-terminated string in a character array with a size of at least StringSize.

StringSize

The maximum number of characters to read from String.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss