If it returns NULL, it is a failure, like an out-of-memory or out-of-address-space condition. If it returns a non-NULL value, but things crash when you try to use it (i.e. it is truly invalid), then I would offer that the heap information used by calloc(...) is messed up,or you are going too far with the pointer returned. Although, since calloc(...) has to actually touch the memory to initialize it to zero, it should crash within the call to calloc(...) if the memory it allocated is really invalid. So, what do you mean by "returns bad pointer"? Peace!
-=- James
Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles