Szabolcs Nagy | 5717444 | 2013-12-12 05:09:18 +0000 | [diff] [blame] | 1 | #define _GNU_SOURCE |
Rich Felker | f4ad36c | 2012-02-06 01:14:23 -0500 | [diff] [blame] | 2 | #include <stdlib.h> |
3 | #include <stdio.h> | ||||
4 | |||||
5 | char *gcvt(double x, int n, char *b) | ||||
6 | { | ||||
7 | sprintf(b, "%.*g", n, x); | ||||
8 | return b; | ||||
9 | } |