1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Added const modifier to String.c_str()

This commit is contained in:
Cristian Maglie 2013-05-06 18:10:29 +02:00
parent 19e4d38725
commit 444ede099d

View File

@ -147,7 +147,7 @@ public:
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
{getBytes((unsigned char *)buf, bufsize, index);}
char* c_str() const { return buffer; }
const char * c_str() const { return buffer; }
// search
int indexOf( char ch ) const;