From 8673113e43fa38c936baca717c8670c54abad6bc Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 6 May 2013 08:57:06 +0200 Subject: Added c_str() method to String class. --- cores/arduino/WString.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cores') 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; -- cgit v1.2.3-18-g5258