gcvt.c 139 B

123456789
  1. #define _GNU_SOURCE
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. char *gcvt(double x, int n, char *b)
  5. {
  6. sprintf(b, "%.*g", n, x);
  7. return b;
  8. }