I get an input with a constant formation. in example:
char* str = "mv /Folder1/folder 2/f1 /Folder1/folder 3"
I need to split it so that i'll end up with two separated string,
str1 == /Folder1/folder 2/f1
str2 == /Folder1/folder 3
I have tried using strtok(str, " /") but it won't work. It ignores the space in the delimiter and only using "/".
Any ideas?
Thank you very much!