Blob


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