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:
Matthijs Kooijman 2014-02-18 21:02:54 +01:00
parent 8e35973ff9
commit 1c6a57e15d
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@
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 fmt[20];
sprintf(fmt, "%%%d.%df", width, prec);