CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Location
    Germany
    Posts
    451

    get environment variables in unix

    Hello,

    I am looking for a way how to get all environment variables in unix. I look for something like GetEnvironmentStrings, not like getenv and putenv.
    Is it possible?

  2. #2
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    There is a function called environ() on many unix systems:
    http://www.rt.com/man/environ.5.html
    --Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured