blob: f29bc304e5bad0459c699422b273d6e381f2c539 [file] [log] [blame] [edit]
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
char *gcvt(double x, int n, char *b)
{
sprintf(b, "%.*g", n, x);
return b;
}