here I have some code which is assigning tokens taken from a string with strtok to an array called hops[][]. my problem is that once the loop has gone through the array, it's supposed to go on and do the same with another string.
However, as soon as the loop finishes and it reaches the last number in the string (in this case 17)...the program crashes.
anyone have any ideas? longstring has been read in from a text file if that's any use.