Andrew suggests ... o Add/use xfree() which would guard against NULL. ... <aol> I like this one too </aol>. It's pretty natural that xmalloc and xfree go together. Michael