1ca Subj : malloc and free To : borland.public.cpp.borlandcpp From : Alistair Date : Sun Jul 11 2004 10:49 pm char * memused = (char *)malloc(80); //allocate 80 bytes memset(memused, '\0', 80); strcpy(memused, "TEST"); How do i find out how many bytes memused has if I dont remember the value 80? strlen returns 4, which is correct, but I want the amount of memory allocated in the first place. Does anyone know?! Cheers Alistair . 0