Last change
on this file since 390 was 390, checked in by coas-nagasima, 5 years ago |
コードを整理
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
247 bytes
|
Rev | Line | |
---|
[388] | 1 | #define _GNU_SOURCE
|
---|
| 2 | #include <stdlib.h>
|
---|
| 3 | #include "libc.h"
|
---|
| 4 |
|
---|
| 5 | static void dummy(char *old, char *new) {}
|
---|
| 6 | weak_alias(dummy, __env_rm_add);
|
---|
| 7 |
|
---|
| 8 | int clearenv()
|
---|
| 9 | {
|
---|
| 10 | char **e = __environ;
|
---|
| 11 | __environ = 0;
|
---|
| 12 | if (e) while (*e) __env_rm_add(*e++, 0);
|
---|
| 13 | return 0;
|
---|
| 14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.