*/
char *
-strdup(char *src) /* should be "const char *" but then some
- bozo OS (e.g., AIX) will come along and disagree.
- The alt is to rename this routine (WDP 96/01) */
+strDup(const char *src)
{
int len = strlen(src) + 1;
char *dst;
new[i] = NULL;
while (--i >= 0) {
- if ((new[i] = strdup(environ[i])) == NULL) {
+ if ((new[i] = strDup(environ[i])) == NULL) {
while (new[++i] != NULL)
free(new[i]);
free(new);
if (!dirtyEnv && copyenv() != 0)
return -1;
- if ((p = strdup(mapping)) == NULL)
+ if ((p = strDup(mapping)) == NULL)
return -1;
/* Look for an existing key that matches */