environment question
- From: bob cs csoft net
- To: gnome-devel-list gnome org
- Subject: environment question
- Date: Sun, 3 Oct 1999 23:41:58 -0500 (CDT)
In my "begining linux programming" book it says that all the environment
variables are stored like:
#include<stdlib.h>
extern char **environ;
but this is not work.
I need to be able to get a list of all names and values of all environment
variables. How do I do this now? I know about getenv and putenv, but they
arnt any good without knowing the variable names wich I dont.
Thanks,
Bob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]