Question: QUESTION 4: C PROGRAMMING Write a function having the following signature: int parse (char linel, char buf10, char buf21, char buf30, int bufSize) The function

 QUESTION 4: C PROGRAMMING Write a function having the following signature:

QUESTION 4: C PROGRAMMING Write a function having the following signature: int parse (char linel, char buf10, char buf21, char buf30, int bufSize) The function parse) assumes the calling function sends a comma separated string within the array linel. The size of the string can be derived from the end of string character. The calling function also provides three additional arrays of equal size. These arrays are empty. The size of these arrays are defined by the parameter bufSize. To solve this problem you are not permitted to use any C library at all. You must do this with only C language commands: like arithmetic, loops, variables, arrays and/or pointers. This function scans the string in array linel extracting each field, without the comma, saving this into the arrays buf11, buf2, and buf3. The function also counts the number of fields present in the input string linel. This count is returned by parse(). Examples: if linell contains "A,B,C" then buf1 has "A", buf2 has "B:, buf3 has "C", returns 3 if linell contains "A,B" then buf1 has "A", buf2 has "B", buf3 has "o", returns 2 if linell contains "A,B,C,D" then A, B, and C are in buf123, D is not, returns 4 Any number of fields can be in linell separated by commas, not spaces

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!