delorie.com/djgpp/doc/libc/libc_842.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <stdlib.h> int unsetenv(const char *name); |
This function removes the environment variable name from the environment. This will update the list of pointers to which the environ variable points. If the specified variable does not exist in the environment, the environment is not modified and this function is considered to have been sucessfully completed.
If name is NULL
, points to an empty string, or points to
a string containing a `=', this function returns -1 and sets
errno
to EINVAL
; otherwise it returns 0.
ANSI/ISO C | No |
POSIX | 1003.2-1992; 1003.1-2001 (see note 1) |
Notes:
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |