aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WString.cpp
diff options
context:
space:
mode:
authorMimmo La Fauci <mlafauci@metodo2.it>2013-02-08 19:21:46 +0100
committerMimmo La Fauci <mlafauci@metodo2.it>2013-02-08 19:21:46 +0100
commitfb1abe737ed23c57a3208d603933dd68138ad022 (patch)
tree524df5142c6566dd19a0d05c40b37c16705cec06 /cores/arduino/WString.cpp
parent09b755fb9c3f5c42fa9b38ffeef0dbfa2cfd8315 (diff)
Added function on WString class to export char ptr
Diffstat (limited to 'cores/arduino/WString.cpp')
-rw-r--r--cores/arduino/WString.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cores/arduino/WString.cpp b/cores/arduino/WString.cpp
index c6839fc..d05037b 100644
--- a/cores/arduino/WString.cpp
+++ b/cores/arduino/WString.cpp
@@ -642,4 +642,8 @@ long String::toInt(void) const
return 0;
}
+char* String::c_str() const
+{
+ return buffer;
+}