I had a structure and a char pointer pointing to its memory address. Therefore, associating this with your question, I wanted to find the size of the memory cell that he pointed to, for example, the size of the structure. So, itβs logical that you do, find the size of the object that the pointer creates. This worked for me:
unsigned char * buffer= Library1Structure; int x=sizeof(Library1Structure);
So, the x value tells me the size of the memory location that the pointer buffer points to.
Asim mushtaq
source share