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?
Printable View
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