Displaying 2 results from an estimated 2 matches for "ed56ef87".
2013 Dec 16
0
[LLVMdev] How can I obtain upper bound of a pointer?
This is rather off-topic for LLVM, it's a C programming question and the C
answer is: you can't. C doesn't expose any way to find the upper limit of
'Ptr' you just have to keep track of what size you used yourself.
On Sun, Dec 15, 2013 at 6:22 PM, 李永超 <lyc364 at gmail.com> wrote:
> Hi,
> How can I obtain the upper bound of a pointer in the code? For example, I
2013 Dec 16
3
[LLVMdev] How can I obtain upper bound of a pointer?
Hi,
How can I obtain the upper bound of a pointer in the code? For example, I
have
a pointer Ptr which points to a block of memory that is allocated by
malloc, say,
Ptr = malloc(size);
Then what should I do if I am going to get the upper bound of the memory
block
that is pointed to by Ptr in the runtime?
Thanks,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...