Lines Matching refs:environ
65 extern char **environ;
84 for (p = environ, cnt = 0; *p; ++p, ++cnt);
86 environ = (char **)realloc((char *)environ,
88 if (!environ)
96 memcpy(p, environ, cnt * sizeof(char *));
97 environ = p;
99 environ[cnt + 1] = NULL;
103 if (!(environ[offset] = /* name + `=' + value */
107 for (c = environ[offset]; (*c = *name++) && (*c != '='); ++c);
124 extern char **environ;
129 for (p = &environ[offset];; ++p)
166 extern char **environ;
171 if (name == NULL || environ == NULL)
176 for (p = environ; (c = *p) != NULL; ++p)
178 *offset = p - environ;