forked from bblanchon/ArduinoJson
Moved Print::write() implementation into Print.cpp
This commit is contained in:
16
JsonGeneratorTests/Print.cpp
Normal file
16
JsonGeneratorTests/Print.cpp
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user