/* Decode the integer value of an environment variable and return it. */
ulong env_get_ulong(const char *name, int base, ulong default_val)
/* Decode the integer value of an environment variable and return it. */
ulong env_get_ulong(const char *name, int base, ulong default_val)
{
	const char *str = env_get(name);
	return str ? simple_strtoul(str, NULL, base) : default_val;
}