cfiB!rich is incorrect about what getenv() returns. getenv() will return NULL if the requested variable is undefined and will return a pointer to the value of the variable if it is defined (yes even if the value is NULL). Marsh Gosnell BTL Piscataway (201) 981-2758 harpo!whuxlb!mkg