Hi i have a doubt. if i allocate some memory like below in one application and send the pointer to another application, and if i want to know the size of the chunk how do i do it??
{
char* ch=malloc(9);
}
i need to get the size of the allocated chunk via malloc
printf("%d",sizeof(ch)); //wont work--will give 4 as its a pointer
printf("%d",sizeof(*ch));//wont work--will give 1 as i am reffering to the first byte