Skip to content
Snippets Groups Projects
Commit 155f2593 authored by Sandeep Mistry's avatar Sandeep Mistry
Browse files

Force link _printf_float in dtostrf

parent e804ad8f
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,8 @@
#include <stdio.h>
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
asm(".global _printf_float");
char fmt[20];
sprintf(fmt, "%%%d.%df", width, prec);
sprintf(sout, fmt, val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment