2.3.2 putenv()

int putenv(string putenv_string)
Adds a new environment variable or alters the value of an existing one.
The parameter putenv_string must have the form “env_varname=value”. If the setting of the environment variable was successful 0 is returned. If an error occurs, the value –1 is returned.


This function only alters the environment of the current process. It cannot be used to alter the environment of the parent process, therefore it cannot be used to pass back information to a calling process.
Non-ConfidentialPDF file icon PDF versionARM DUI0840C
Copyright © 2014, 2015 ARM. All rights reserved.