1 /* setenv implementation for systems lacking it. */
12 int setenv(const char *name
, const char *val
, int overwrite
)
14 int len
= strlen(name
) + strlen(val
) + 2;
15 char *env
= malloc(len
);
16 if (!env
) { return -1; }
18 assert(overwrite
!= 0);