1 2 3 4 5 6 7 8 9
#include <mlvalues.h> #include <alloc.h> extern char ** environ; value unix_environment() { return copy_string_array(environ); }