aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/getenv.c
blob: 5dfc857798428096d62cabcda6ead094ffda2ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <u.h>
#define NOPLAN9DEFINES
#include <libc.h>

char*
p9getenv(char *s)
{
	char *t;

	t = getenv(s);
	if(t == 0)
		return 0;
	return strdup(t);
}

int
p9putenv(char *s, char *v)
{
	return setenv(s, v, 1);
}