Question: A) Write a function called split_string, which takes a string and a separator character and returns an array of strings consisting of parts of the

 A) Write a function called split_string, which takes a string and

A) Write a function called split_string, which takes a string and a separator character and returns an array of strings consisting of parts of the original string which were separated by the given character (the final element in the array will be a nu pointer). For this part, you must not call any standard string functions. For example split-string ("http://example.com/fred./,) would return an array of "http:", "", "example.com", "fred", (char*)o. 5 marks char** split.string(const char* line, char sep)

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!