#include <unistd.h> and use the environ[] array.