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

Convert string to hex numbers in little enidian format

Validate the input string contains only hexadecimal characters

Note: None

Prototype

u32 Xil_ValidateHexStr(const char *HexStr);

Parameters

The following table lists the Xil_ValidateHexStr function arguments.

Table 1. Xil_ValidateHexStr Arguments
Type Member Description
const char * HexStr - Pointer to string to be validated

Returns

XST_SUCCESS - On valid input hex string XST_INVALID_PARAM - On invalid length of the input string XST_FAILURE - On non hexadecimal character in string