I have a string with spaces. I'd like to split the string in two parts, in the first part I want one of the word of the string, let's say the third, and in the other part I want the rest.
String= "first two three fourth fifth"
String_2= "first two fourth fifth"
In principle I don't know the number of words in the string, I only know the position of the word I want.
I know it should be easy, but I couldn't do it without problems with pointers and other strange things.
What's is the standard way to do it?. Some code would be fantastic.
Thanks and regards.