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
  • 358,771
  • 68
  • 593
  • 989
Bachalo
  • 5,885
  • 22
  • 86
  • 175

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,905
  • 11
  • 17