Sign in
plan9port
/
plan9
/
08e793723cad1c7aed2e8cb16c8592aba5ad05e9
/
.
/
src
/
lib9
/
get9root.c
blob: 3ef704c93d8d18a7dc6f33fe85e2e71d1a1dd162 [
file
] [
log
] [
blame
]
#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
;
}