source: trunk/minix/lib/stdio/ecvt.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 724 bytes
Line 
1/* $Header: /cvsup/minix/src/lib/stdio/ecvt.c,v 1.1.1.1 2005/04/21 14:56:35 beng Exp $ */
2
3#ifndef NOFLOAT
4
5#include "../ansi/ext_fmt.h"
6void _dbl_ext_cvt(double value, struct EXTEND *e);
7char *_ext_str_cvt(struct EXTEND *e, int ndigit, int *decpt, int * sign, int ecvtflag);
8
9static char *
10cvt(long double value, int ndigit, int *decpt, int *sign, int ecvtflag)
11{
12 struct EXTEND e;
13
14 _dbl_ext_cvt(value, &e);
15 return _ext_str_cvt(&e, ndigit, decpt, sign, ecvtflag);
16}
17
18char *
19_ecvt(long double value, int ndigit, int *decpt, int *sign)
20{
21
22 return cvt(value, ndigit, decpt, sign, 1);
23}
24
25char *
26_fcvt(long double value, int ndigit, int *decpt, int *sign)
27{
28 return cvt(value, ndigit, decpt, sign, 0);
29}
30
31#endif /* NOFLOAT */
Note: See TracBrowser for help on using the repository browser.