lib/sw_apps/img_rcvry/src/xbir_util.c
u8 Xbir_UtilIsNumber (const char *Str)
{
	u8 Status = FALSE;
	const char *NumStr = Str;

	while ((*NumStr) != 0U) {
		if (((*NumStr) < '0') || ((*NumStr) > '9')) {
			goto END;
		}
		NumStr++;
	}
	Status = TRUE;

END:
	return Status;
}
/*****************************************************************************/
/**
 * @brief
 * This function validates input string represents number in string format
 *
 * @param	FileName	Pointer to input string
 *
 * @return	XST_SUCCESS if input string represents number
 * 		XST_FAILURE if input string do not represent number
 *
 *****************************************************************************/
@brief
This function validates input string represents number in string format

@param       FileName        Pointer to input string

@return      XST_SUCCESS if input string represents number
XST_FAILURE if input string do not represent number
@brief This function validates input string represents number in string format @param FileName Pointer to input string @return XST_SUCCESS if input string represents number XST_FAILURE if input string do not represent number
u8 Xbir_UtilIsNumber (const char *Str)
{
	u8 Status = FALSE;
	const char *NumStr = Str;
	while ((*NumStr) != 0U) {
		if (((*NumStr) < '0') || ((*NumStr) > '9')) {
			goto END;
		}
		NumStr++;
	}
	Status = TRUE;
END:
	return Status;
}
u8 Xbir_UtilIsNumber ( const char * Str ) { u8 Status = FALSE ; const char * NumStr = Str ; while ( ( * NumStr ) != 0U ) { if ( ( ( * NumStr ) < ' ' ) || ( ( * NumStr ) > ' ' ) ) { goto END ; } NumStr ++ ; } Status = TRUE ; END : return Status ; }
@brief
 This function validates input string represents number in string format
@brief This function validates input string represents number in string format