Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

calling getenv() always returns NULL-pointer

$
0
0

Hello,

I would like to define an environment variable for reading back its value later in my c-code.

But getenv() always returns a NULL pointer, even if I try to read standard environment variables like "GCC_VERSION" or "PATH".

May be there are any additional settings (eclipse) or handling necessary, I'm not aware of?


Any idea or help, is very appreciated.

Thanks in advance and best regards

Ralph

 

 


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>