Path: utzoo!utgpu!water!watmath!clyde!rutgers!iuvax!pur-ee!uiucdcs!uiucdcsb!roch From: roch@uiucdcsb.cs.uiuc.edu Newsgroups: comp.sys.amiga Subject: getenv() Message-ID: <164000007@uiucdcsb> Date: 21 Jan 88 17:54:00 GMT Lines: 23 Nf-ID: #N:uiucdcsb:164000007:000:555 Nf-From: uiucdcsb.cs.uiuc.edu!roch Jan 21 11:54:00 1988 While looking through the include files for Lattice 4.0, I noticed that getenv is defined in stdlib.h. Curious, I tried accessing the environment variables set by assign, both with and without the colon, but in each case the null string was returned. My program looked like this: #include #include void main() { char *s; s = getenv("include"); /* also tried include: */ printf ("<%s>\n",s); } The map file shows that getenv is 0x328 bytes. Can anyone tell me what's going on? thanks, david roch roch@b.uiuc.edu