i know you can split strings using strtok..
but i was wondering if it was possible using sscanf..

but the trick is that i dont know how many tokens there will be in the string..
eg str = "hi there this is cool"
and i want it to print
hi
there
this
is
cool

i've tried a while loop but it gets stuck on the first word infinetley
hi
hi
hi
....

??? any ideas?