Various additions and fixes.
This commit is contained in:
parent
74f990ad84
commit
fd04aacee1
57 changed files with 2176 additions and 159 deletions
15
src/lib9/getenv.c
Normal file
15
src/lib9/getenv.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <u.h>
|
||||
#define NOPLAN9DEFINES
|
||||
#include <libc.h>
|
||||
|
||||
char*
|
||||
p9getenv(char *s)
|
||||
{
|
||||
char *t;
|
||||
|
||||
t = getenv(s);
|
||||
if(t == 0)
|
||||
return 0;
|
||||
return strdup(t);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue