(Solved) : Exercise 1 50 Points Write Versions Strlen Strncat Functions Described Text See Screenshot Q28594848 . . .
Exercise 1 (50 points): Write your own versions of the strlenand strncat functions described in the text. (See the screenshot ofthe function descriptions given below.) Write a function namedremovechr that removes all occurrences of the specified characterfrom a string. All three of these functions will use pointers andpointer arithmetic. (You may not use array subscripts anywhere inyour functions.) Your removechr function will be prototyped asfollows:
char *removechr(char *string, const char ch);
The function removechr removes all occurrences of a characterfrom a string and returns a pointer to the modified string. Pleasenote it does modify the string that is its first argument and it iscase sensitive. (‘T’ is treated differently than ‘t’.)

Fig. 8.14 String-manipulation functions of the string-handling library prototype crepychari const char1 char ornopzi char 1, const char “2, siar capes armos! n enarseters strin? a2 ite array a: are returns ad. charssschar censt char3 charaer of a. The value Appends al most n charalers of string a2 to arary a. The first characler of 2 ovenaies tbe termaneting N of si is returned Fig. 8.33 Other functions of the string-handling library Maps “rromas ims a tull trot string in comaer.Mel locain-spec ne mvnfer te g the nessage may appear i, dimrent spokon languages based on the computer’s locac) A pointer to the saring is returned Error ners are cetned n coh Determines the length of stning The number o characters prereding the emminating nul character is rebumed Sampla output of a drlver used to test ravnowechr prodiced the following resus Lhat Jaruary 1. 2000 You may NOT call anything from the library in your functions You may test your strien and strncat furictons by comparing the results producud wih thove produced by the Ibrary versions. You will nood to creato a ariver to test your tunctons, we will b testing your tunctions witn our driver, we will NOT be including the string.h header file in our program Again your functions must work without using anything from the library! Name your files for this exercise as folows <1st Intial of first name>1st Initial al last rameGradbook rumberAAssignment number_EX1 syiena You may NOT call anything from the library in your functions Yau may est your strien and strncat lu cans by camparirng the resuts protuced aith those preducod by the orary versiens. Yau wi need to create a driver to sest your funcors. Wewi be testing your unctiens with our criver. We will NOT be including the stinghheader lile in our program. Again your functions mast work without using . Begin the body of a whil” 0, for boo on te in beow the loop header Begin the body cf a do-while bop on the line below the key word do. Indent the statenses in the body ol a loop cne level from the key word that marks he boginning of the loop Write your kops so that it is clear frorn the loap continuation expression when the lcop terates and when it terminates Do not use a cal to the exit functian to terminate the ierations of a cop. -Do nol use a return statement to ext a loop -Do not use a break 10 exit a loop De not use contiaue in your loops De nol put statemerts in the body of a fox leep that change te vaue ef the variable(s. used to control the iterations of the loop Show transcribed image text
Expert Answer
Answer to Exercise 1 50 Points Write Versions Strlen Strncat Functions Described Text See Screenshot Q28594848 . . .
OR