gcvt.c 119 B

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