#include <stdlib.h> 


int main (int argc, char ** argv) {
 setenv("PATH", "foo", 1);
 system("echo $PATH");

 return EXIT_SUCCESS;
}