I am trying to get a function to split a string containing several words which are separated by 1 or more spaces and put each word without any spaces into an index of an array of strings.
I have been googling it for a while, it seems I need strtok but I am a bit clueless, would someone please shed some light?