Question: I need to write a function in C that splits a string by a delimiter: char** split(char* s, char d). I can't use strtok and

I need to write a function in C that splits a string by a delimiter: char** split(char* s, char d). I can't use strtok and my idea is to find the length of each individual string, malloc the space, and fill the string with the characters. I can't seem to figure out how to do it. Any help is appreciated!

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!