/* Function to determine whether a string is decimal or hex representation of a number and return the number converted from the string. */
UINTN ReturnUintn(IN CONST CHAR16 *String)
/* Function to determine whether a string is decimal or hex representation of a number and return the number converted from the string. */
UINTN ReturnUintn(IN CONST CHAR16 *String)
{
  UINT64  RetVal;
  if (!EFI_ERROR (ShellConvertStringToUint64 (String, &RetVal, FALSE, TRUE))) {
    return ((UINTN)RetVal);
  }
  return ((UINTN)(-1));
}