hi
i have some problem ...
we have a function like below
int how_many( int *p ){
.......
}
how can we know the size of allocated memory for this pointer
(
for example in samewhere
int *p=(int *)malloc(rand()*sizeof(int));
printf("%d",how_many(p));
there is a func. in VC named "_msize "
but i want to learn how it works
have a nice day