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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here