1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-23 08:45:22 +03:00
Makuna
2015-07-10 18:28:04 -07:00
committed by Ivan Grokhotkov
parent 2f34d6d74a
commit dece240830
4 changed files with 39 additions and 18 deletions

View File

@ -135,6 +135,17 @@ int printf_P(const char* formatP, ...) {
return ret;
}
int sprintf_P(char* str, const char* formatP, ...) {
int ret;
va_list arglist;
va_start(arglist, formatP);
ret = vsnprintf_P(str, SIZE_IRRELEVANT, formatP, arglist);
va_end(arglist);
return ret;
}
int snprintf_P(char* str, size_t strSize, const char* formatP, ...) {
int ret;
va_list arglist;