MCPcopy Create free account
hub / github.com/coreutils/coreutils / unset_envvars

Function unset_envvars

src/env.c:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static void
194unset_envvars (void)
195{
196 for (idx_t i = 0; i < usvars_used; ++i)
197 {
198 devmsg ("unset: %s\n", usvars[i]);
199
200 if (unsetenv (usvars[i]))
201 error (EXIT_CANCELED, errno, _("cannot unset %s"),
202 quote (usvars[i]));
203 }
204}
205
206/* Return a pointer to the end of a valid ${VARNAME} string, or NULL.
207 'str' should point to the '$' character.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected