I have to filter the input for a geniric string with some operations.
for example :
char buf  ="25+2;44+1;8-2." char op1; char op2; char operazione; char en;//in this varible i put ";" for the next operation , I put "." becouse the operations are end sscanf(buf,"%[0-9] %[+-] %[0-9] %[;.]",op1,operazione,op2,en );
In this way I can filter 25+2; but I don't know how to filter the rest of the string.
I can't iterate for a generic string with a lot of operations.
Help me please also with other methods.