I was making a console type program, but the only part im stuck on is spliting the commands that the user inputs. For example. Lets say the user inputs--"exec C:/blah.exe". I wan't to split "exec", and "C:/blah.exe" apart. Some function kinda like this.

split(buffer, string, delimiter);

Also, is it possible to make the buffer an array of somesort, so it puts the first part in buffer[0] which would be "exec", and buffer[1] would contain "C:/blah.exe";

I don't know of any such functions, but if you could point me in the right direction then I would greatly appreciate it!