0

I am trying to tokenize a continuous string sin(45)-20 with no blank spaces or separators.

I want the result as sin ( 45 ) - 20.

Is there any way to do it? I learnt about strtok() but it requires a separator like a blank space or any character.

I am unable to figure it out.

Sumeet
  • 11
  • 4
  • strpbrk function accept any number of seperator character. strpbrk("sin(45)-20", "()-") as example – idris Dec 23 '21 at 07:59

0 Answers0