Xil_SMemMove - Xil_SMemMove - 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 is wrapper function to memmove function. This function takes size of two memory regions to avoid out of bound memory region.

Compares Len bytes between source and destination memory

Prototype

s32 Xil_SMemMove(void *Dest, const u32 DestSize, const void *Src, const u32 SrcSize, const u32 CopyLen);

Parameters

The following table lists the Xil_SMemMove function arguments.

Table 1. Xil_SMemMove Arguments
Type Member Description
void * Dest - Pointer to destination memory
const u32 DestSize - Memory available at destination
const void * Src - Pointer to source memory
const u32 SrcSize - Maximum data that can be copied from source
const u32 CopyLen - Number of bytes to be copied

Returns

XST_SUCCESS - Copy is successful XST_INVALID_PARAM - Invalid inputs