3 * (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands.
5 * This product is part of the Amsterdam Compiler Kit.
7 * Permission to use, sell, duplicate or disclose this software must be
8 * obtained in writing. Requests for such permissions may be sent to
10 * Dr. Andrew S. Tanenbaum
11 * Wiskundig Seminarium
19 /* Author: J.W. Stevenson */
27 #define PREC_DIG 80 /* maximum digits produced by _ecvt() */
29 _wsr(w
,r
,f
) int w
; double r
; struct file
*f
; {
30 char *p
,*b
; int s
,d
,i
; char buf
[PREC_DIG
+7];
32 if (w
< 0) _trp(EWIDTH
);
59 *p
++ = '0' + (d
/10) % 10;
62 _wstrin(w
,(int)(p
-buf
),buf
,f
);
65 _wrr(r
,f
) double r
; struct file
*f
; {