C
Programming and Technical
Programming
Definition
Q. Difference between strdup and strcpy?
A. 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
Read Solution (Total 0)
C Other Question