Write a C function called stringCopy(destination, source) . This function takes two C strings as parameters and copies the source string into the destination string. Once the copy is completed, the...


 Write a C function calledstringCopy(destination, source). This function takes two C strings as parameters and copies thesource string into thedestination string. Once the copy is completed, the function returns the number of characters (except null) that were copied.You cannot use the C library functionsstrcpy, strcat or any of their variants. You need to write all the code required to do the copy yourself. However, you may use a C library function to determine the length of a string.



b. What is the important precondition forstringCopy to work? Explain why the precondition is necessary.


c. Write a C main program to demonstrate/test that yourstringCopyfunction works. You will need the program to read user input into thesource string.




Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here