ref: ba4b0723d9e6d6ec72ca54016a932e72fbae46f7
dir: /libnpe/setenv.c/
#include <u.h> #include <libc.h> int setenv(char *name, char *value, int overwrite) { char *s; if(overwrite == 0 && (s = getenv(name)) != nil){ free(s); return 0; } return putenv(name, value); }