0

I have a string value 'func1/50/70'

I need to parse it so that I have 'func1' as a string and both 50 and 70 as int values.

Can any C++, arduino experts help?

Lightness Races in Orbit
  • 369,052
  • 73
  • 620
  • 1,021
Bachalo
  • 6,497
  • 25
  • 88
  • 184

1 Answers1

0

I'm not sure what Arduino C allows. In C++ you can try std::find, that can return a pointer to something to be found. In this case you'd try to find the "/"

Ben
  • 1,995
  • 12
  • 18