C
Carlos Martinez
Hi all:
I want to know how can I trace an address.
I don't need the conversion from an integral type to string. Suppose I
have an "asString" function that do that conversion.
My main problem is that code must compile for 2 compilers and 2
Operating Systems. I cannot assume the size of pointers to have 4,
8, ... bytes.
Does standard guarantee a pointer is convertible to a concrete
integral type (for example, unsigned int) ?
If it does, i suppose I can cast to that integral type, but if it
doesn't how can I determine the apropiate type ? Remember 2 different
environments can have 2 different sizes for pointers (I think).
Thanks in advance
I want to know how can I trace an address.
I don't need the conversion from an integral type to string. Suppose I
have an "asString" function that do that conversion.
My main problem is that code must compile for 2 compilers and 2
Operating Systems. I cannot assume the size of pointers to have 4,
8, ... bytes.
Does standard guarantee a pointer is convertible to a concrete
integral type (for example, unsigned int) ?
If it does, i suppose I can cast to that integral type, but if it
doesn't how can I determine the apropiate type ? Remember 2 different
environments can have 2 different sizes for pointers (I think).
Thanks in advance