Question: Please answer this in c language includes) WRITE THE FUNCTION DEFINITION (me all necessary 3 char pointer fa serine ellename that represents the name of

Please answer this in c language  Please answer this in c language includes) WRITE THE FUNCTION DEFINITION

includes) WRITE THE FUNCTION DEFINITION (me all necessary 3 char pointer fa serine ellename that represents the name of a text file throsgeh he erine) word that represents a word for which you are hich enish wviting the Runction deuition for the int function esso . a const char pointer immediately assume that the ile followed contains more than one line of text. Each line in the ile by The flanction should either a carriage return An' or an end of file marker (EOF - open up the named file for reading irthe file cannot be opened, the function should return a-2 otherwise, the function should read the lines of the file into a buffer, one word/line at a time, keeping track of line numbers (start counting at 1). if a string read - in is an exact match to the word passed in, the function should close the file and return the current line number ifthe function reaches the end or me without finding a match, the function should close the file and returm a -1 This fonction itselfperforms no input from or ouiput to the console! The only input is from the file Ey thisscrs issCr> then the call: should set lineNumber to 2 (since "is" is on line 2). (don't worry about "magio numbers int fileSearch( 1ineNumberfilesearch ("x.txt", "is")

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!