Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
How to know the memory pointed by a ptr is freed?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Flash Gordon, post: 2386769"] For all you know this might only work on Sundays. It is undefined behaviour and as has been discussed here there is NO standard way to determine if the object a pointer points to has been freed or not. In fact, even with your specific implementation I am willing to bet that there are situations where (unsigned*)p)[-1] would actually point in to another object. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
How to know the memory pointed by a ptr is freed?
Top