getenv returning null string in a library used by my program

Posted on 2004-11-01
Last Modified: 2010-04-17

In a library that my code is using, getenv is not able to pick an environment variable.
if i do an echo on that variable, it shows the value properly.
but while debugging, when i see the value returned by getenv function in the library, it is not returning anything.

Any thought what the problem could be?

Question by:dkamdar
    1 Comment
    LVL 23

    Accepted Solution

    Debug mode gets a different environment.  If you run a release executable, I bet you'll see the envvar you want.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    printing double sided for a pdf document 19 74
    code issue 8 59
    has22 challenge 11 46
    wordsWithout 49 49
    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now