18 lines
225 B
C
18 lines
225 B
C
|
#include <u.h>
|
||
|
#include <libc.h>
|
||
|
|
||
|
char*
|
||
|
get9root(void)
|
||
|
{
|
||
|
static char *s;
|
||
|
|
||
|
if(s)
|
||
|
return s;
|
||
|
|
||
|
if((s = getenv("JEHANNE_HACKING")) != 0)
|
||
|
return s;
|
||
|
/* could do better - search $PATH */
|
||
|
s = "/usr/local/plan9";
|
||
|
return s;
|
||
|
}
|