aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cores/arduino/WString.h1
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;