diff options
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r-- | cores/arduino/WString.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index eede8ae..fb87c52 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -76,8 +76,8 @@ class String String toLowerCase( ) const; String toUpperCase( ) const; String trim( ) const; - const unsigned char *getBytes() const { return (unsigned char*)_buffer; } - const char* toCharArray() const { return _buffer; } + void getBytes(unsigned char *buf, unsigned int bufsize); + void toCharArray(char *buf, unsigned int bufsize); const String& concat( const String &str ); String replace( char oldChar, char newChar ); String replace( const String& match, const String& replace ); |