3 ms·
The issue in C99 is: > The lifetime of an allocated object extends from the allocation until the deallocation. Each such allocation shall yield a pointer to an
by astrange 5y ago
The issue in C99 is:
> The lifetime of an allocated object extends from the allocation until the deallocation. Each such allocation shall yield a pointer to an object disjoint from any other object.
If the implementation of malloc is visible, then it can be inlined etc., and then you have to deal with the effects of this obviously not being true.
- wrycoder 5y agoIt would have been better, if the writer had not used the word “object”.