Last change
on this file since 373 was 352, checked in by coas-nagasima, 6 years ago |
arm向けASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
323 bytes
|
Line | |
---|
1 | #define _GNU_SOURCE
|
---|
2 | #include <stdlib.h>
|
---|
3 | #include "libc.h"
|
---|
4 |
|
---|
5 | #ifndef __c2__
|
---|
6 | static void dummy(char *old, char *new) {}
|
---|
7 | weak_alias(dummy, __env_rm_add);
|
---|
8 | #else
|
---|
9 | extern void __env_rm_add(char *old, char *new);
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | int clearenv()
|
---|
13 | {
|
---|
14 | char **e = __environ;
|
---|
15 | __environ = 0;
|
---|
16 | if (e) while (*e) __env_rm_add(*e++, 0);
|
---|
17 | return 0;
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.