plan9port/src/lib9/getenv.c

16 lines
156 B
C
Raw Normal View History

2003-11-23 18:12:54 +00:00
#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);
}