I'm working with Arduino and it's best to avoid stuff like STL as it just uses more resources, and all the premade functions in arduino take char strings and not stl strings so it's easier to just use those instead of converting back and forth.
If I write a function that needs to return a char array, how do I do it? As far as I know, you can't return an array, but I think there is a way you can do it with an argument, I just forget how. On computers I typically don't do this and just use regular strings and not char arrays.
Of course I could use a global temp variable, but I kinda want to avoid that.
If I write a function that needs to return a char array, how do I do it? As far as I know, you can't return an array, but I think there is a way you can do it with an argument, I just forget how. On computers I typically don't do this and just use regular strings and not char arrays.
Of course I could use a global temp variable, but I kinda want to avoid that.