Moved Print::write() implementation into Print.cpp

This commit is contained in:
Benoît Blanchon
2014-07-03 12:55:53 +02:00
parent b560a87e15
commit dd5cf661e3
4 changed files with 21 additions and 9 deletions

View File

@ -0,0 +1,16 @@
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#include "Print.h"
size_t Print::write(const char* s)
{
size_t n = 0;
while (*s)
{
n += write(*s++);
}
return n;
}