Skip to content

Commit d6350d7

Browse files
author
Federico Fissore
committed
borrowing WString.h from master
1 parent a4d497a commit d6350d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hardware/arduino/avr/cores/arduino/WString.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ class String
147147
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
148148
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
149149
{getBytes((unsigned char *)buf, bufsize, index);}
150+
const char * c_str() const { return buffer; }
150151

151152
// search
152153
int indexOf( char ch ) const;

0 commit comments

Comments
 (0)