mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-23 08:45:22 +03:00
Issue fixes
https://github.com/esp8266/Arduino/issues/475 https://github.com/esp8266/Arduino/issues/484
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user