diff options
Diffstat (limited to 'src/lib9/get9root.c')
-rw-r--r-- | src/lib9/get9root.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib9/get9root.c b/src/lib9/get9root.c new file mode 100644 index 00000000..858b4e74 --- /dev/null +++ b/src/lib9/get9root.c @@ -0,0 +1,13 @@ +#include <u.h> +#include <libc.h> + +char* +get9root(void) +{ + char *s; + + if((s = getenv("PLAN9")) != 0) + return s; + return "/usr/local/plan9"; +} + |