-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strrev missing?? #109
Comments
The strrev() function (used to reverse the given string) is a built-in function in C and is defined in string.h header file, which is a standard header file for all C++ compilers. Please check that you have string.h on your computer. What development environment are you using? |
I work with the Arduino IDE 2.0.3. |
IDE 2.0.3 under Windows 10 with target Arduino Uno compiles cleanly on my system. |
Your reverse function is logically flawed. The string is generally not the size of the buffer (so you should use strlen() not BUF_SIZE) and you are not handling the terminating nul character properly in the reversal process. The standard strrev() does the reverse in the same buffer (ie, no additional memory required). Here is the code for the strrev() function from the libraries:
Also, for future reference, please include text and not graphics when including code or debug output in your messages as these are easier to handle if we need to cut/paste for testing. |
Thanks. |
Hello.
I installed MD_Parola and MD_MAX72xx today.
I wanted to try Parola_scrolling_vertical but i get the error:
Parola_Scrolling_Vertical.ino:160:7: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
Other examples are working fine.
The text was updated successfully, but these errors were encountered: