<div dir="ltr">Hi,<div>How can I obtain the upper bound of a pointer in the code? For example, I have </div><div>a pointer Ptr which points to a block of memory that is allocated by malloc, say,</div><div><br></div><div>Ptr = malloc(size);</div>
<div><br></div><div><br></div><div>Then what should I do if I am going to get the upper bound of the memory block</div><div>that is pointed to by Ptr in the runtime?</div><div><br></div><div>Thanks,</div><div>Ben</div></div>