Programming language C Write your own implementation for the functions above, where the names of the functions will be: my_strcmp my_strncmp my_strchr respectively. In addition, write a program (a function called main (which allows receiving data, running The functions you wrote and printing their results. 2 Note 1: In the implementation of the standard library for the strchr function, the return value of the function is from a pointer type. In the realization that you must write (strchr_my, the function must return an int value, which indicates the The index of the character from the beginning of the array. If the character is not found, a negative number (minus one) must be returned. Note 2: The following "input word" can be received (where "input word" is defined as a collection of characters between Two "white" characters - space, t, \or n (\by using the scanf command as follows: scanf(“%s”, character_vector_name);; which will cause the next "input word" to be read, into the array whose name appears as the second parameter of the function. The array must be large enough to accommodate the "input word". In this question, a maximum value can be assumed 80 Additional instructions and notes:  The program should print an input-friendly request message that specifies what the user should type.  The input to the program is from stdin, and can come from the keyboard or from a file (using redirection when running the program). For your convenience, prepare several input files and use them repeatedly to debug the program.    No hand written and fast answer with explanation

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section: Chapter Questions
Problem 3PP
icon
Related questions
Question

Programming language C

Write your own implementation for the functions above, where the names of the functions will be:
my_strcmp
my_strncmp
my_strchr
respectively. In addition, write a program (a function called main (which allows receiving data, running
The functions you wrote and printing their results.
2

Note 1: In the implementation of the standard library for the strchr function, the return value of the function is
from a pointer type. In the realization that you must write (strchr_my, the function must return an int value, which indicates the
The index of the character from the beginning of the array. If the character is not found, a negative number (minus one) must be returned.
Note 2: The following "input word" can be received (where "input word" is defined as a collection of characters between
Two "white" characters - space, t, \or n (\by using the scanf command as follows:
scanf(“%s”, character_vector_name);;
which will cause the next "input word" to be read, into the array whose name appears as the second parameter of the function.
The array must be large enough to accommodate the "input word". In this question, a maximum value can be assumed
80
Additional instructions and notes:
 The program should print an input-friendly request message that specifies what the user should type.
 The input to the program is from stdin, and can come from the keyboard or from a file (using redirection when
running the program). For your convenience, prepare several input files and use them repeatedly to debug the program. 

 

No hand written and fast answer with explanation 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning