add cmd_env_unset to remove environment variables

This commit is contained in:
slonkazoid 2024-09-12 15:04:14 +03:00
parent 8ca45f2538
commit ca53b3e4eb
No known key found for this signature in database
5 changed files with 41 additions and 5 deletions

View file

@ -19,4 +19,10 @@ char **env_create();
*/
char **env_setenv(char **envp, char *name, char *value);
/**
* Unsets an environment variable in the given environment.
* If successful, this will reallocate the entire array.
*/
char **env_unsetenv(char **envp, char *name);
#endif