The strdup() function duplicates a string
The strdup() function, available in various languages, returns a pointer to a new string which is a duplicate of the original string.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb759969(v=vs.85).aspx
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/strdup.3.html
http://linux.die.net/man/3/strdup