fork(1) download
  1. #include <stdlib.h>
  2.  
  3. int main( int argc, char **argv, char **envp )
  4. {
  5. char **env = NULL;
  6.  
  7. for( env = envp; *env != 0; env++ )
  8. {
  9. char * variavel = *env;
  10. printf( "%s\n", variavel );
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 4468KB
stdin
Standard input is empty
stdout
LANG=en_US.UTF-8
WORKSPACE=/tmp/a4a2fff3-ba98-4fda-9d1d-e31d83ac61ee
PWD=/home/0NxZg3
HOME=/home/0NxZg3
TMPDIR=/tmp/WpSkY2
TMPDIR_GLOBAL=/tmp/a4a2fff3-ba98-4fda-9d1d-e31d83ac61ee
SHLVL=0
PATH=/usr/local/bin:/usr/bin:/bin