getenv question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oops, that should have said

shell export TEST=data

not

export TEST=data

Greg


On Wed, Jun 16, 2004 at 07:57:13PM -0500, Gregory Nowak wrote:
> Hi all.
> 
> I'm trying to use getenv in a c program, but it doesn't seem to work.
> 
> From within gdb, at the gdb prompt, I'm doing:
> 
> export TEST=data
> 
> However, in my program doing
> 
> getenv("TEST\0");
> 
> is returning a NULL pointer.
> 
> Can someone please tell me what I'm missing? Thanks.
> 
> Greg
> 
> 
> -- 
> Free domains: http://www.eu.org/ or mail dns-manager at EU.org
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> !DSPAM:40d0f47b24142361913859!
> 
> 

- -- 
Free domains: http://www.eu.org/ or mail dns-manager at EU.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFA0PVi7s9z/XlyUyARAmhMAJ42rS3Uyip/qSHGLssmFd7d3R39cwCeKHhS
PtBOZs7LF5cd/YZ9IJF8PXM=
=5Wp2
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux