On Fri, Dec 10, 1999 at 01:39:07PM -0800, Sean 'Shaleh' Perry wrote: > preventry is set to NULL at the top, strdup("") just sets it to NULL again. No, it doesn't. strdup() returns NULL only if malloc() returned NULL. Usually, strdup("") will return a valid, non-NULL pointer to an empty string (that is, to a lone zero byte). Why this is done, I don't know. -- %%% Antti-Juhani Kaijanaho % gaia@iki.fi % http://www.iki.fi/gaia/ %%% "" (John Cage)