diff options
author | Federico Fissore <f.fissore@arduino.cc> | 2013-05-09 11:20:15 +0200 |
---|---|---|
committer | Federico Fissore <f.fissore@arduino.cc> | 2013-05-09 11:20:15 +0200 |
commit | c48c0f9e2cebe0e3ebda7aa5c4f9096b9586ed9e (patch) | |
tree | 2a2850ac8d219eda8a1ea1e03211050ac31080d5 /cores/arduino/WString.h | |
parent | f12d265653719924d59c774312ff506dc16ea261 (diff) |
borrowing WString.h from master
Diffstat (limited to 'cores/arduino/WString.h')
-rw-r--r-- | cores/arduino/WString.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index 947325e..642b016 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -147,6 +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);} + const char * c_str() const { return buffer; } // search int indexOf( char ch ) const; |