• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

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.
0
dkamdar
Asked:
dkamdar
1 Solution
 
cookreCommented:
Debug mode gets a different environment.  If you run a release executable, I bet you'll see the envvar you want.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now