mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Include stdio.h in dtostrf.c
This makes the declaration of sprintf available, so the function is not implicitely declared, which triggers two compiler warnings. This helps towards #1792
This commit is contained in:
@ -18,6 +18,8 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
|
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
|
||||||
char fmt[20];
|
char fmt[20];
|
||||||
sprintf(fmt, "%%%d.%df", width, prec);
|
sprintf(fmt, "%%%d.%df", width, prec);
|
||||||
|
Reference in New Issue
Block a user