|
rcutils
master
C API providing common utilities and data structures.
|
#include <stdbool.h>#include "rcutils/macros.h"#include "rcutils/visibility_control.h"#include "rcutils/get_env.h"
Go to the source code of this file.
Functions | |
| bool | rcutils_set_env (const char *env_name, const char *env_value) |
| Set or un-set a process-scoped environment variable. More... | |
| bool rcutils_set_env | ( | const char * | env_name, |
| const char * | env_value | ||
| ) |
Set or un-set a process-scoped environment variable.
This function modifies the environment variables for the current process by copying given string values into the process' global environment variable store.
"") differs between platforms. On Windows, the variable is un-set (as if env_value was NULL), while on other platforms the variable is set to an empty string as expected.| [in] | env_name | Name of the environment variable to modify. |
| [in] | env_value | Value to set the environment variable to, or NULL to un-set. |
True if success False if env_name is invalid or NULL False on failure
1.8.17