Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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
Check Mark
Knowledge Booster
Background pattern image
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
    Recommended textbooks for you
    Text book image
    Database System Concepts
    Computer Science
    ISBN:9780078022159
    Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
    Publisher:McGraw-Hill Education
    Text book image
    Starting Out with Python (4th Edition)
    Computer Science
    ISBN:9780134444321
    Author:Tony Gaddis
    Publisher:PEARSON
    Text book image
    Digital Fundamentals (11th Edition)
    Computer Science
    ISBN:9780132737968
    Author:Thomas L. Floyd
    Publisher:PEARSON
    Text book image
    C How to Program (8th Edition)
    Computer Science
    ISBN:9780133976892
    Author:Paul J. Deitel, Harvey Deitel
    Publisher:PEARSON
    Text book image
    Database Systems: Design, Implementation, & Manag...
    Computer Science
    ISBN:9781337627900
    Author:Carlos Coronel, Steven Morris
    Publisher:Cengage Learning
    Text book image
    Programmable Logic Controllers
    Computer Science
    ISBN:9780073373843
    Author:Frank D. Petruzella
    Publisher:McGraw-Hill Education