getenv question
Gregory Nowak
greg at romuald.net.eu.org
Wed Jun 16 21:35:30 EDT 2004
-----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-----
More information about the Speakup
mailing list