Question: () Write a C function, duplicate_string () that takes a string as its parameter and returns a pointer to a newly allocated region of memory

() Write a C function, duplicate_string () that takes a string as its parameter and returns a pointer to a newly allocated region of memory containing a copy of the string. Do not use any of the C library's string functions. char duplicate_string (chars){
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
