Question: not allow to use string.h test it in mystring_main.c Question 1 My string functions Write C program mystring.h containing the headers of following string functions,

 not allow to use string.h test it in mystring_main.c Question 1not allow to use string.h
My string functions Write C program mystring.h containing the headers of following
test it in mystring_main.c
string functions, and mystring.c containing the implementations of the functions. It is

Question 1 My string functions Write C program mystring.h containing the headers of following string functions, and mystring.c containing the implementations of the functions. It is not allowed to use string library string.h 1. int str_length(char *s) computes and returns the number of characters of string passed by s (including space). 2. int word_count(char *s) computes and returns the number of words of string passed by s. 3. void lower_case(char *s) changes upper case to lower case of string passed by s. 4. void trim(char *s) removes the none necessary empty spaces of string passed by s. Use the provided main function mystring_main.c to test the above functions, the output should be exactly like the following. Public test gee mystring. c mystring_main. c -o q1 91 str: This Is a Test str length(str):25 word_count (str):4 trim(str): this is a test str length(trim(str)):14 mystring.h Add code comment each function Binder MYSTRING H #define MYSTRING_H int str length (char*): Int word_count (char void lower case (char*): void trim(char*); Fendit mystring.c #include "mystring.h" #define NULLO int str_length(char *s) { your lewentation int word count (char *s) pour implementation void lower_case(char *s) your implementation void trim(char*) ur plementation *mystring_main:c - C# (F) (E) (0) (V) (H) TE #include #include "mystring.h" I int main(int argc, char* args[]) { setbuf(stdout, NULL); char str[100] = This Is a Test "; printf("str:\"%s\" ", str); printf("str_length(str):%d ", str_length(str)); printf("word_count(str):%d ", word_count(str)); trim(str); lower_case(str); printf("trim(str):\"%s\" ", str); printf("str_length(trim(str)):%d ", str_length(str)); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!