Hi all. I hope this is an easy question--how does one determine the size of a memory location pointed to by a pointer? For example, to determine the number of bytes in a string you do strlen(), which counts the number of bytes until the string termination character. How do you count the total number of bytes of the area allocated for the string?
The actual specific reason I ask is that I have a pointer to a MYSQL_RES (a type that holds info on a result set from the mysql c api which contains, among other things, an indeterminate amount of rows), and I'd like to know how much memory it's taking up.
This is probably something I should have learned long ago....
Thanks a lot!