reading all environment variables?

From: Mike (mikee_at_mikee.ath.cx)
Date: 07/26/04


Date: Mon, 26 Jul 2004 11:39:23 -0000

Using C (gcc) I can get a single environment variable using
getenv(), if I know the variable name. What is the way to get
a list (array) of all environment variable names?

Mike



Relevant Pages

  • Re: reading all environment variables?
    ... In article, Mike wrote: ... > Using C (gcc) I can get a single environment variable using ... > getenv(), if I know the variable name. ... ICQ: 126002505 | IRC: thunder ...
    (comp.os.linux.development.apps)
  • Re: reading all environment variables?
    ... > Using C (gcc) I can get a single environment variable using ... > getenv(), if I know the variable name. ... array of pointers to all environment variables of the form ...
    (comp.os.linux.development.apps)
  • Re: Arrays of incomplete type
    ... Is GCC 4 correct in reporting an array of incomplete type as an error? ... Note that GCC 3.x reports the array of incomplete type as a warning, ...
    (comp.std.c)
  • Re: Byte alignment at compile time
    ... # Is there a way using GNU GCC, to double word align an array? ... GCC advertises an aligned attribute for variables with the example ... The compiler guarentees that you do not have to specify any alignment ...
    (comp.unix.programmer)
  • Re: Arrays of incomplete type
    ... Is GCC 4 correct in reporting an array of incomplete type as an error? ... there is a need for "constants" of this opaque type. ...
    (comp.std.c)