From 7b739330bb459401f9c11f0f84912aedc7ee22cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=A4ssler?= Date: Sat, 9 Nov 2013 21:04:06 +0100 Subject: Add os:unsetenv/1 New BIF os:unsetenv/1 which deletes an environment variable and returns 'true'. Does not change any old functionality. Calls the libc function unsetenv(3) on UNIX and SetEnvironmentVariableW(key, NULL) on Windows. The unicode support is the same as for os:getenv and os:putenv. --- lib/kernel/doc/src/os.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/kernel/doc/src/os.xml') diff --git a/lib/kernel/doc/src/os.xml b/lib/kernel/doc/src/os.xml index 5e182de41d..9122267c40 100644 --- a/lib/kernel/doc/src/os.xml +++ b/lib/kernel/doc/src/os.xml @@ -176,6 +176,17 @@ format_utc_timestamp() -> + + + Delete an environment variable + +

Deletes the environment variable VarName.

+

If Unicode filename encoding is in effect (see the erl manual + page), the string (VarName) may + contain characters with codepoints > 255.

+
+
Return the Operating System version -- cgit v1.2.3