About using malloc(0) to point to a unique place. What's wrong with using malloc(1) ?? That way malloc(0) would do what is expected. Return a NULL pointer. This just seems too easy, doesn't it?