hey guys I really need your help a) Write the following functions: - myStrcpy: s
ID: 3635039 • Letter: H
Question
hey guys I really need your helpa) Write the following functions:
- myStrcpy: similar functionality as strcpy found in <cstring> but it returns nothing.
- myStrncpy: similar functionality as strncpy found in <cstring> but it returns nothing.
- myStrcmp: similar functionality as strcmp found in <cstring> but it returns nothing.
- myStrncmp: similar functionality as strncmp found in <cstring> but it returns nothing.
- myStrcat: similar functionality as strcat found in <cstring> but it returns nothing.
- myStrncat: similar functionality as strncat found in <cstring> but it returns nothing.
- myStrlen: similar functionality as strlen found in <cstring>. It returns an integer.
b) Write a program that uses the above functions and run it. Submit the complete program and its output. Your program should show that all your functions work properly. You should not include cstring!!
Explanation / Answer
Dear, a) Helping with few functions void myStrcpy(char string1[],char string2[]) { int index=0; while(string2[index]!='') { string1[index]=string2[index]; index++; } string1[index]=''; } void myStrncpy(char string1[],char string2[],int n) { int index=0; while(indexRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.