Xil_StrCpyRange - Xil_StrCpyRange - 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

Copies specified range from source string to destination string.

Appends string2 to string1

Note: None

Prototype

s32 Xil_StrCpyRange(const u8 *Src, u8 *Dest, u32 From, u32 To, u32 MaxSrcLen, u32 MaxDstLen);

Parameters

The following table lists the Xil_StrCpyRange function arguments.

Table 1. Xil_StrCpyRange Arguments
Type Member Description
const u8 * Src is a pointer to source string
u8 * Dest is a pointer to destination string
u32 From is 0 based index from where string copy starts
u32 To is 0 based index till which string is copied
u32 MaxSrcLen is the maximum length of source string
u32 MaxDstLen is the maximum length of destination string

Returns

XST_SUCCESS on success XST_FAILURE on failure