10 lines
139 B
C
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;
|
||
|
}
|