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