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

This function copies one string to other. This function takes size of both strings to make sure not to read from / write to out of bound area.

Compares source string with destination string

Prototype

s32 Xil_SStrCpy(u8 *DestStr, const u32 DestSize, const u8 *SrcStr, const u32 SrcSize);

Parameters

The following table lists the Xil_SStrCpy function arguments.

Table 1. Xil_SStrCpy Arguments
Type Member Description
u8 * DestStr - Pointer to destination string
const u32 DestSize - Maximum string size that destination can hold
const u8 * SrcStr - Pointer to source string
const u32 SrcSize - Maximum string size that source can hold

Returns

XST_SUCCESS - Copy is successful XST_INVALID_PARAM - Invalid inputs