I got the following string:
"312 ,22 ,+12 , -12 , 5331"
it is possible to have more than 1 space between numbers.
I need to convert it to an array like that:
int arr[] = {312,22,-12,12,5331};
Is there a pretty and elegant way to do this with C89?
Use
strtok+atoi: