Question
C and C++ We are to implement our own versions of the following five utility functions without using any library functions. We are given some
C and C++
We are to implement our own versions of the following five utility functions without using any library functions. We are given some base code to start off. I am unsure on how to write the code without using any of the library functions, even with the base code to help. Thank you in advance for your help.
The five utility functions are: 1. myStrlen() - (20%) Implement your own version of strlen() and name it myStrlen(). 2. myStrcat() - (20%) Implement your own version of strcat() and name it myStrcat(). 3. myStrcpy() - (20%) Implement your own version of strcpy() and name it myStrcpy(). 4. myStrcat_BC() - (20%) Write a function named myStrcat_BC() so that it performs the functionality of strcat() with bounds checking. In case out of bound occurs, the function displays an error message on standard I/O screen. For example, the size of s1 is 11 and s1 = "World", if we use myStrcat() to concatenate itself to the end twice, its length should exceed 11 and function should prompt with "Out of bound!" message. 5. isPalindromic() - (20%) A palindromic word is a word which is the same no matter you read backward or forward. Some are examples are "I", "eye", and "madam." The case insensitive program treats upper case and lower case of a character the same. For example, R and r are the same, thus Radar is considered a palindromic word. In this function we want to do the case insensitive version. The function should be named isPalindromic(), which returns true if the word is palindromic. Otherwise, it returns false.
The base code is:
#include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started