1 /* fprintreal.c: print the real number R in the Pascal format N:M on the
2 file F. Public domain. */
4 #include <w2c/config.h>
8 fprintreal (FILE *f
, double r
, int n
, int m
)
10 char fmt
[50]; /* Surely enough, since N and M won't be more than 25
13 sprintf (fmt
, "%%%d.%dlf", n
, m
);