1ECVT_R(3)                  Linux Programmer's Manual                 ECVT_R(3)
2
3
4

NAME

6       ecvt_r, fcvt_r, qecvt_r, qfcvt_r - convert a floating-point number to a
7       string
8

SYNOPSIS

10       #include <stdlib.h>
11
12       int ecvt_r(double number, int ndigits,  int  *decpt,  int  *sign,  char
13       *buf, size_t len);
14
15       int  fcvt_r(double  number,  int  ndigits,  int *decpt, int *sign, char
16       *buf, size_t len);
17
18       int qecvt_r(long double number, int ndigits,  int  *decpt,  int  *sign,
19       char *buf, size_t len);
20
21       int  qfcvt_r(long  double  number,  int ndigits, int *decpt, int *sign,
22       char *buf, size_t len);
23

DESCRIPTION

25       The functions ecvt_r(), fcvt_r(), qecvt_r() and qfcvt_r() are identical
26       to  ecvt,  fcvt, qecvt and qfcvt, respectively, except that they do not
27       return their result in a static buffer, but instead  use  the  supplied
28       buf of size len.  See ecvt(3) and qecvt(3).
29

RETURN VALUE

31       These functions return 0 on success, and -1 otherwise.
32

NOTES

34       These functions are obsolete. Instead, sprintf() is recommended.
35

CONFORMING TO

37       These functions are GNU extensions.
38

SEE ALSO

40       ecvt(3), qecvt(3), sprintf(3)
41
42
43
44GNU                               2004-10-05                         ECVT_R(3)
Impressum