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 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
Get step-by-step solutions from verified subject matter experts
