Zdotenv – Dotenv Loader for Zig
github.com
github.com
> Although Zig is independent of C, and, unlike most other languages, does not depend on libc, Zig acknowledges the importance of interacting with existing C code.
lol, what? This is definitely not the way you should be trying to do whatever this is trying to do.
I'll try to find it, and edit if I can, but I'll try to find the context for the sister thread discussing why Zig intentionally doesn't support setting env vars for a running process.
I think I’d probably be forced to bitch slap a colleague if they designed applications like that.
That said. Applications likely to be using zdotenv are probably not what you’re talking about here and should not likely be setting env especially since setenv is “dangerous”.