This function compares two strings. It also takes maximum string size that Src1 and Src2 can hold to make sure not to read out of bound data for comparison.
Compares source string with destination string with constant time
Prototype
s32 Xil_SStrCmp(const u8 *Str1, const u32 Str1Size, const u8 *Str2, const u32 Str2Size);
Parameters
The following table lists the Xil_SStrCmp function arguments.
| Type | Member | Description |
|---|---|---|
| const u8 * | Str1 | - Pointer to first string |
| const u32 | Str1Size | - Maximum string size that Str1 can hold |
| const u8 * | Str2 | - Pointer to second string |
| const u32 | Str2Size | - Maximum string size that Str2 can hold |