Sorry for what might seem like a newb question, but here's what I'm trying to do.
I'm sending a string via serial to a linux console ie: "wget -qO- "http://192.168.1.2/myscript.php"
And it returns something like: "aaa:b ccc:d root@DD-WRT:~#"
I need to a strip off the shell line, break split my string on space, then split the two arrays via ":".
One thing is that it could return "aaa:b ccccccc:d eeee:f gg:h" or "aaa:b", so it has to be dynamic.
After the split, I need to loop thru each of the final array groupings so I can take element and do a switch statement on that, then use element for printing something else out to the console.
Like I said, sorry for the noob question. I'm a PHP developer and it's been years since I've played with C.