def get_var_name(string: str) -> str:
  """Gets the name from an argument variable.

  Args:
    string: Input variable declaration

  Returns:
    The name of the arguments variable as a string, e.g. "int x" -> "x".
  """

  var = string.strip()

  # Not an actual variable
  if var in ("void", "..."):
    return ""

  # Unnamed variable, use an arbitrary name
  if var[-1] == "*":
    return var.split("_")[1]

  return var.split(" ")[-1].strip()