Write your own implementation of the following functions: 1. void myStrCpy(char des[], const char src[]); //copies the c
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write your own implementation of the following functions: 1. void myStrCpy(char des[], const char src[]); //copies the c
Write your own implementation of the following functions: 1. void myStrCpy(char des[], const char src[]); //copies the contents of the src //to the des. 2. int myStrLen(const char str[]); //return the length of a string without //counting the null terminator. 3. int myStrcmp(const char str1[],const char str2[]); //compares str1 with str2 //and returns O if str1 == str2, returns -1 if - str1 < str2 and returns 1 if//str1 > str2 4. int atoi(const char str[]); //returns the integer value of a string //for example "123" ->123 5. float atof(const char str[]); //returns the float value of a string //for example "12.3" ->12.3
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!