We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e4d38 commit 444ede0Copy full SHA for 444ede0
hardware/arduino/cores/arduino/WString.h
@@ -147,7 +147,7 @@ class String
147
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
148
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
149
{getBytes((unsigned char *)buf, bufsize, index);}
150
- char* c_str() const { return buffer; }
+ const char * c_str() const { return buffer; }
151
152
// search
153
int indexOf( char ch ) const;
0 commit comments