Is there a way in C to find out the size of dynamically allocated memory?
For example, after
char* p = malloc (100);
Is there
I would expect this to be implementation dependent. If you got the header data structure, you could cast it back on the pointer and get the size.