I`ve been trying to this for quite a while now and after some research I had no success, so my last resort was asking a question. My input looks like this:
1
You already got quite close: you missed to consume the delimiter in your second approach:
scanf("%[^/]/%[^/]/%[^/]/%[^/]", str1, str2, str3, str4);
should do the job.