Lines Matching refs:environ
45 extern char **environ; /* pointer to enviroment */
63 /* we have expanded environ before */
64 newenv = (char **)realloc(environ,
67 /* now that we have space, change environ */
68 environ = newenv;
70 /* environ points to the original space */
74 (void)memcpy((char *)newenv, (char *)environ,
76 environ = newenv;
78 environ[which-2] = change;
79 environ[which-1] = NULL;
82 environ[which] = change;
87 /* find - find where s2 is in environ
91 * output - index of name in environ that matches "name"
97 int ct = 0; /* index into environ */
99 while(environ[ct] != NULL) {
100 if (match(environ[ct], str) != 0)