get9root.c - 9base - revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log
Files
Refs
README
LICENSE
---
get9root.c (204B)
---
     1 #include 
     2 #include 
     3 
     4 char*
     5 get9root(void)
     6 {
     7         static char *s;
     8 
     9         if(s)
    10                 return s;
    11 
    12         if((s = getenv("PLAN9")) != 0)
    13                 return s;
    14         /* could do better - search $PATH */
    15         s = PREFIX;
    16         return s;
    17 }
    18