summaryrefslogtreecommitdiff
path: root/src/stdlib/gcvt.c
blob: 6c075e25851d8b2e90ca5aa680c7f1a0b792dcd1 (plain)
1
2
3
4
5
6
7
8
#include <stdlib.h>
#include <stdio.h>

char *gcvt(double x, int n, char *b)
{
	sprintf(b, "%.*g", n, x);
	return b;
}