What would be an efficient way of converting a delimited string into an array of strings in C (not C++)? For example, I might have:
char *input = "valgrind --leak-check=yes --track-origins=yes ...
I'm writing a linux shell for my operating systems class. I've knocked out the majority of it but I'm stuck on simple string comparisons. I've everything I can think ...
I have a function which accepts some values as char array parameters.
These values are separated with semicolons (';').
For example: "hello;dear;John"
So I'm trying to figure out a way by using strtok to ...