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