aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/getenv.c
blob: c6ff71605ee17216a5d8b68a00c1d3541c53610f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);
}