
Implement a function that cuts a string into tokens wherever any character from a caller-supplied delimiter set appears, and returns those tokens as a malloc'd, NULL-terminated array of strings.
split("cargo build --release", " -")["cargo", "build", "release", NULL]split("one,two,,three", ",")["one", "two", "three", NULL]split(",,,,", ",")[NULL]split.cmalloc<stdlib.h>declares malloc<stddef.h>defines NULL
Run the tests to grade your code
Implement a function that cuts a string into tokens wherever any character from a caller-supplied delimiter set appears, and returns those tokens as a malloc'd, NULL-terminated array of strings.
split("cargo build --release", " -")["cargo", "build", "release", NULL]split("one,two,,three", ",")["one", "two", "three", NULL]split(",,,,", ",")[NULL]split.cmalloc<stdlib.h>declares malloc<stddef.h>defines NULL
Run the tests to grade your code
Memory will appear here