Difference between strdup and strcpy?

Difference between strdup and strcpy?


Both copy a string. strcpy wants a buffer to copy into. strdup allocates a buffer using malloc(). Unlike strcpy(), strdup() is not specified by ANSI .

Comments

Popular posts from this blog

What is JAD and how are users involved? What are advantages and disadvantages of JAD?

Describe at least three of the general information skills essential for all business careers.

Why do firms need to invest in net working capital?