diff options
Diffstat (limited to 'include/env.h')
-rw-r--r-- | include/env.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h index 72980962bf..bf34ac3f86 100644 --- a/include/env.h +++ b/include/env.h @@ -40,6 +40,17 @@ int env_init(void); void env_relocate(void); /** + * env_match() - Match a name / name=value pair + * + * This is used prior to relocation for finding envrionment variables + * + * @name: A simple 'name', or a 'name=value' pair. + * @index: The environment index for a 'name2=value2' pair. + * @return index for the value if the names match, else -1. + */ +int env_match(unsigned char *name, int index); + +/** * env_get_f() - Look up the value of an environment variable (early) * * This function is called from env_get() if the environment has not been |