diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-05-06 08:57:06 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-05-06 08:57:06 +0200 |
commit | 8673113e43fa38c936baca717c8670c54abad6bc (patch) | |
tree | 8eb35153c16b28b7a0ca1b7293dbedc16e600e40 /cores/arduino | |
parent | ccf7eb9a56345e150fc8141a7c6f7905f7b11940 (diff) |
Added c_str() method to String class.
Diffstat (limited to 'cores/arduino')
-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..b3e280a 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);} + char* c_str() const { return buffer; } // search int indexOf( char ch ) const; |