10 /* str should be a duplicated version of the input string;
11 len is the length of the key including the = sign */
12 int __put_env(char *str, size_t len, int overwrite);
14 int setenv(const char *name, const char *val, int overwrite)
20 if ( !name || !name[0] ) {
26 for ( z = name ; *z ; z++ ) {
42 memcpy(s+l1+1, val, l2+1);
44 return __put_env(s, l1+1, overwrite);