I'm having some trouble parsing a char array on C. Stupidly, the specification for the programme does not allow commas to be used as delimiters.
Does anyone have a quicker way to seperate out the integers from the char than what how I'm doing it (sequentially - big waste of execution time)?
>>60292960
Sent ;)
>>60292960
>big waste of execution time
It really, really isn't.
>>60293061
So you're suggesting to keep going as I am, using strtok to single out the integers? Is there anything similar to java's split.str function?
>>60293081
Only if you write it yourself. Or maybe see if strstr() can help. I haven't touched C for a couple of years so my stdlib knowledge is fading.
>>60293107
It's all good I've just used a tonne of delimiters, strstr looks like a really useful function though cheers for bringing it up