fix incorrect initial count in shgetc when data is already buffered
[musl] / src / stdlib / gcvt.c
1 #include <stdlib.h>
2 #include <stdio.h>
3
4 char *gcvt(double x, int n, char *b)
5 {
6         sprintf(b, "%.*g", n, x);
7         return b;
8 }