mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 01:09:37 +01:00
It's a little weird we don't check the return status for these, but changing that would introduce risk so I did not. Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
12 lines
168 B
C++
12 lines
168 B
C++
#include <cstdlib>
|
|
|
|
#include "environment-variables.hh"
|
|
|
|
namespace nix {
|
|
|
|
int setEnv(const char * name, const char * value)
|
|
{
|
|
return ::setenv(name, value, 1);
|
|
}
|
|
|
|
}
|