STRDUP() Macro (Sun Java System Web Server 7.0 Update 6

strdup - qnx.com The strdup() function creates a duplicate of the string pointed to by src, and returns a pointer to the new copy. The strdup() function allocates the memory for the new string by calling malloc(); it's up to you to release the memory by calling free(). Returns: strdup() and strndup() functions in C/C++ - Tutorialspoint.dev The strdup() and strndup() functions are used to duplicate a string.. 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(). It returns a pointer to the duplicated string s.

BUF_strdup() copies a null terminated string into a block of allocated memory and returns a pointer to the allocated block. Unlike the standard C library strdup() this function uses OPENSSL_malloc() and so should be used in preference to the standard library strdup() because it can be used for memory leak checking or replacing the malloc

strdup(3) [mojave man page] - Unix

strdup - Duplicate String

Feb 19, 2010 Difference between strdup() and strcpy() Oct 17, 2014 STRDUP() Macro (Sun Java System Web Server 7.0 Update 6