Hi, I was just wondering if anyone could confirm for me exactly how the strcpy function works. Basically if I have a malloc'ed value and i strcpy it into a fixed size array, will the process of strcpy automatically free up the memory being used by the malloc'ed value as when I try to use the 'free' command on the value I get an error, almost as if it has already been freed when the strcpy function was used.

Cheers.