plan9port/src/lib9/get9root.c

17 lines
171 B
C

#include <u.h>
#include <libc.h>
char*
get9root(void)
{
static char *s;
if(s)
return s;
if((s = getenv("PLAN9")) != 0)
return s;
s = PLAN9_TARGET;
return s;
}