blob: 07e2872c512d288ea454c0ceb2bedb040e33ddd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <u.h>
#include <libc.h>
char*
get9root(void)
{
static char *s;
if(s)
return s;
if((s = getenv("PLAN9")) != 0)
return s;
/* could do better - search $PATH */
s = "/usr/local/plan9";
return s;
}
|