Answers for "strdup()"

1

strdup()

Syntax : char *strdup(const char *s);
This function returns a pointer to a null-terminated byte string, which is a duplicate of the string pointed to by s.
The memory obtained is done dynamically using malloc and hence it can be freed using free().
Posted by: Guest on April-04-2021

Code answers related to "strdup()"

Browse Popular Code Answers by Language