-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Omit the extra 0 and see what happens. The quoted string already automatically appends the 0 you have placed inside the string. On Wed, 16 Jun 2004, 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 > ------------ Output from gpg ------------ > gpg: Signature made Wed Jun 16 20:57:13 2004 EDT using DSA key ID 79725320 > gpg: Good signature from "Gregory Nowak <greg at romuald.net.eu.org>" > gpg: WARNING: This key is not certified with a trusted signature! > gpg: There is no indication that the signature belongs to the owner. > Primary key fingerprint: 83D5 78B6 289E 6441 BF21 4A30 EECF 73FD 7972 5320 > > - -- The Moon is New My home page is now at http://www.mhcable.com/~chuckh -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iQCVAwUBQNFt/jVdG8M9x9tGAQJR5AQAtm5uTKGvy0zaoM4Rx9o2dMeK5Upg1CGd tzzZd6paXVx8z0Yl5ruqrCnBceDiha3HZHJkKpB5jWdn35Jk4gMq722HRid1XN+g HkdP1WL1w6F6BFgYIpzXL2haHqcQ7SBtvWx8WDupYhktrhn7sRY2focwc0CLhaDM QKRr8js1eMo= =Zbrm -----END PGP SIGNATURE-----