purge remaining gpl code from clib, and make clib build again
[tangerine.git] / compiler / clib / unsetenv.c
blob26590472235fde37bd77d8972aacf923ce1ed811
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function unsetenv().
6 */
8 #include <proto/dos.h>
9 #include "__env.h"
11 /*****************************************************************************
13 NAME */
14 #include <stdlib.h>
16 void unsetenv (
18 /* SYNOPSIS */
19 const char *name)
21 /* FUNCTION
22 deletes a variable from the environment.
24 INPUTS
25 name -- Name of the environment variable to delete.
27 RESULT
28 Returns zero on success, or -1 if the variable was not found.
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
38 INTERNALS
40 ******************************************************************************/
43 __env_delvar(name);
44 DeleteVar(name, GVF_LOCAL_ONLY);
45 } /* unsetenv */