help!? I think i'm retarded because I can't figure this out. I'm reading in the input at a prompt and I need to break it up.
I'm using:
while((scanf("%s", inputstr))
to read in the string. Then I want to use strtok to break up inputstr by looking for spaces. I need the first one to go into a variable and the rest to go into an array. Can someone guide me? I've looked at examples of strtok and they don't make sense. If someone knows of a different way, I'd be up for that too.