(Solved) : 3 String Search Develop C Code Searches File Given String Q27859678 . . .
3. String Search. Develop a C code that searches a file for agiven string

3 String Search Develop a C program that searches a file for a given string. Your program should Ask the user to enter the file to be searched. Ask the user to enter the target string. The string can be longer than one word, but no longer than a line. Locate the target string in the file. Your program should be able to identify the target string as a part of another string. You are not allowed to call the strstr function for this part, you have to implement your own. Print the line number as well as the entire line for every match. Sample execution: File input: Lorem Ipsum is simply dummy text of the printing and typesetting industry Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Target word: si Output: . Lore Ipsum is simply dummy text of the printing and typesetting industry 2. Lore Ipsum has been the industry’s standard dummy text ever since the 1500s, 3. reently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Note that in your output, the matching text need not be red. Show transcribed image text
Expert Answer
Answer to 3 String Search Develop C Code Searches File Given String Q27859678 . . .
OR