ruby_setenv

Function ruby_setenv 

Source
pub unsafe extern "C" fn ruby_setenv(
    key: *const c_char,
    val: *const c_char,
)
Expand description

Sets an environment variable. In case of POSIX this is a wrapper of setenv(3). But there are systems which lack one. We try hard emulating.

ยง@param[in] key An environment variable. @param[in] val A value to be associated with key, or 0. @exception rb_eSystemCallError setenv(3) failed for some reason. @post Environment variable key is created if necessary. Its value is updated to be val.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3