string related function

Hello ,
I'v composed a search engine to work on a specific database , using c language .
the problem is : it only takes a single word , and searches for it , i need a way for it to take multiple words from the user , and give me the search results for these words , kinda like "google" does .
for example : instead of typing "car" , i want to be able to type "fast cars" .
so basicly i need a string related function to divide the string given by the user so i could apply my "search" function on each word .
Thank you .

strtok will divide a C-string into individual tokens.
http://www.cplusplus.com/reference/cstring/strtok/
thank you , exactly what i am looking for .
Topic archived. No new replies allowed.