From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30094 invoked by alias); 29 Sep 2003 05:15:52 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30087 invoked from network); 29 Sep 2003 05:15:52 -0000 Received: from unknown (HELO sj-iport-2.cisco.com) (171.71.176.71) by sources.redhat.com with SMTP; 29 Sep 2003 05:15:52 -0000 Received: from cisco.com (171.71.177.238) by sj-iport-2.cisco.com with ESMTP; 28 Sep 2003 22:14:58 -0700 Received: from beasley.cisco.com (beasley.cisco.com [171.71.180.166]) by sj-core-5.cisco.com (8.12.9/8.12.6) with ESMTP id h8T5FnXg001367 for ; Sun, 28 Sep 2003 22:15:49 -0700 (PDT) Received: from ciscow40s0055 ([10.76.59.192] (may be forged)) by beasley.cisco.com (8.8.6 (PHNE_14041)/CISCO.SERVER.1.2) with SMTP id WAA08765 for ; Sun, 28 Sep 2003 22:15:49 -0700 (PDT) Reply-To: From: "Ashay Shende" To: "Gcc-Help" Subject: Environment variable doubt Date: Mon, 29 Sep 2003 05:15:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Importance: Normal X-SW-Source: 2003-09/txt/msg00307.txt.bz2 Hi, I need some help in retrieving the values of the Environment vars from my C++ program. For getting the values of the Environment Variables, I am using the getenv() function. e.g string serverName = getenv("SERVER_NAME"); However, when i do getenv("SERVER_PROTOCOL"), it strangely returns a string "INCLUDED" whereas I am expecting something like HTTP/0.9 or or a similar value. Does anyone have any idea about this ? Also, can anyone tell me how to get the list of all the environment variables and their values. Thanks in advance -Ashay