1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:37:36 +00:00

LibC: stdlib: Add clearenv() function

This commit is contained in:
Brendan Coles 2020-12-16 23:49:55 +00:00 committed by Andreas Kling
parent 3436317c08
commit 853664bd3c
4 changed files with 46 additions and 1 deletions

View file

@ -41,7 +41,7 @@ int main(int argc, char** argv)
for (int idx = 1; idx < argc; ++idx) {
if (idx == 1) {
if (StringView { argv[idx] } == "-i" || StringView { argv[idx] } == "--ignore-environment") {
*environ = NULL;
clearenv();
continue;
}
}