Blob
1 #include <u.h>2 #define NOPLAN9DEFINES3 #include <libc.h>5 char*6 p9getenv(char *s)7 {8 char *t;10 t = getenv(s);11 if(t == 0)12 return 0;13 return strdup(t);14 }16 int17 p9putenv(char *s, char *v)18 {19 char *t;21 t = smprint("%s=%s", s, v);22 if(t == nil)23 return -1;24 putenv(t);25 return 0;26 }