musl-tcc/src/stdlib/gcvt.c
2022-03-20 16:48:53 +08:00

10 lines
139 B
C

#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
char *gcvt(double x, int n, char *b)
{
sprintf(b, "%.*g", n, x);
return b;
}