From fb1abe737ed23c57a3208d603933dd68138ad022 Mon Sep 17 00:00:00 2001 From: Mimmo La Fauci Date: Fri, 8 Feb 2013 19:21:46 +0100 Subject: Added function on WString class to export char ptr --- cores/arduino/WString.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cores/arduino/WString.cpp') 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; +} -- cgit v1.2.3-18-g5258