Xil_Strnlen - Xil_Strnlen - 2026.1 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

Convert string to hex numbers in big endian format

Returns the length of input string.

Note:

Prototype

u32 Xil_Strnlen(const char *Str, u32 MaxLen);

Parameters

The following table lists the Xil_Strnlen function arguments.

Table 1. Xil_Strnlen Arguments
Type Member Description
const char * Str - Input string
u32 MaxLen - Maximum expected length of the input string

Returns

Returns length of the input string if length is less than MaxLen. Returns MaxLen if the length of the input string is >= MaxLen.