source: azure_iot_hub/trunk/musl-1.1.18/src/env/clearenv.c@ 389

Last change on this file since 389 was 389, 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: 323 bytes
Line 
1#define _GNU_SOURCE
2#include <stdlib.h>
3#include "libc.h"
4
5#ifndef __c2__
6static void dummy(char *old, char *new) {}
7weak_alias(dummy, __env_rm_add);
8#else
9extern void __env_rm_add(char *old, char *new);
10#endif
11
12int 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.