title: How to set an environment variable when using system() to execute a command?
body: <p>I'm writing a C program on Linux and need to execute a command with <code>system()</code>, and need to set an environment variable when executing that command, but I don't know how to set the env var when using <code>system()</code>.</p>