I want to strtok an array with space.i.e
"the gate"
want to put first into an array and the other, after the space in another array.how to use strtok in this problem?
I want to strtok an array with space.i.e
"the gate"
want to put first into an array and the other, after the space in another array.how to use strtok in this problem?
If you are on unix like operating system:
man strtok
If you are not, google for 'man strtok'.
In either case, try to figure it out and then ask for help. Show some sample code. We don't do handouts.
Try searching these forums too, this has been discussed before.
http://cboard.cprogramming.com/searc...der=descending
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]