On 11/28/06, praveen kumar <[EMAIL PROTECTED]> wrote:
please let me know what is the difference between strcpy() and strdup()?
With strcpy, you have to pre-allocate memory for the destination pointer. strdup() allocates memory and returns a pointer to this memory, which you must free() after you are finished using it. Please refer to your compiler's documenation for more details (or type 'man strcpy' or 'man strdup' into Google) -- Brett
