Xil_Strcpy - Xil_Strcpy - 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 functions copies source string to destination string. This function is a safe version of strcpy.

Copies specified range from source string to destination string

Prototype

s32 Xil_Strcpy(char *DestPtr, const char *SrcPtr, const u32 Size);

Parameters

The following table lists the Xil_Strcpy function arguments.

Table 1. Xil_Strcpy Arguments
Type Member Description
char * DestPtr is pointer to destination string
const char * SrcPtr is pointer to source string
const u32 Size is the maximum number of bytes of the source string to be copied

Returns

XST_SUCCESS on success and error code on failure