Bill McEnaney writes: > Maybe another problem is that getenv() expects a pointer, not a string > literal. It seems to me although a pointer can point to a string > literal, a string literal can't point to anything. If I'm mistaken, > would someone please say so? You're mistaken. getenv() expects a const char*, and a string literal has a type char[], which is compatible. Andrew.