Copies at most length characters from str into a newly-allocated piece of memory of size length+1. The memory is allocated with new[]. A terminating null byte is written to the memory, and a pointer to it is returned. If str is NULL, NULL is returned.
source not stored for this graph (policy: none)