It seems like including the right header (unistd.h?) to define NULL for us might be cleaner.. Do you know if unistd.h does infact declare NULL on HP-UX 11.x? -- kolya