fork download
  1. #include <stdlib.h>
  2.  
  3.  
  4. int main (int argc, char ** argv) {
  5. setenv("PATH", "foo", 1);
  6. system("echo $PATH");
  7.  
  8. return EXIT_SUCCESS;
  9. }
Success #stdin #stdout 0.01s 5052KB
stdin
Standard input is empty
stdout
foo