getenv returning null string in a library used by my program

Hi,

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?

Thanks.
dkamdarAsked:
Who is Participating?
 
cookreCommented:
Debug mode gets a different environment.  If you run a release executable, I bet you'll see the envvar you want.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.