[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: List of all environment variables?
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: List of all environment variables? |
Date: |
Tue, 4 Sep 2012 14:20:27 -0400 |
On 30 August 2012 11:57, fork <address@hidden> wrote:
> Is there a way to get all the environment variables in a session?
>
> I know about getenv() and putenv(), I was hoping for the shell equivalent of
> "env".
I don't believe there is one. The best I can think of is using
system() to call env or printenv and parsing the result.
- Jordi G. H.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: List of all environment variables?,
Jordi Gutiérrez Hermoso <=