Home
last modified time | relevance | path

Searched refs:np (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dgetenv.c51 const char *np; in __findenv() local
57 for (np = name, i = len; i && *cp; i--) in __findenv()
58 if (*cp++ != *np++) in __findenv()
76 const char *np; in getenv() local
78 for (np = name; *np && *np != '='; ++np) in getenv()
80 return (__findenv(name, (int)(np - name), &offset)); in getenv()
Dsetenv.c93 const char *np; in setenv() local
100 for (np = name; *np && *np != '='; ++np) in setenv()
102 if (*np) { in setenv()
108 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { in setenv()
120 while (__findenv(name, (int)(np - name), &tmpoff)) { in setenv()
141 malloc((size_t)((int)(np - name) + l_value + 2)))) in setenv()
159 const char *np; in unsetenv() local
166 for (np = name; *np && *np != '='; ++np) in unsetenv()
168 if (*np) { in unsetenv()
174 while (__findenv(name, (int)(np - name), &offset)) { in unsetenv()