Re: environment question



this works prefectly for me:

extern char **environ;

int i;

main (int argc, char **argv) { 
  while (environ[i]) {
    printf("%s\n", environ[i]); 
    i++;
  }
}

Bertrand



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]